Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit 1fe4a9d

Browse files
author
Jeff Verkoeyen
committed
Merge branch 'release-candidate' into stable
2 parents 5bb0d57 + 7235cc4 commit 1fe4a9d

18 files changed

+53
-178
lines changed

.travis.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ env:
77
- LANGUAGE=en_US.UTF-8
88
matrix:
99
include:
10-
- osx_image: xcode9.2
11-
env: COVERAGE=code_coverage SDK="iphonesimulator11.2" DESTINATION="name=iPhone 6s,OS=11.2"
12-
- osx_image: xcode9.2
13-
env: SDK="iphonesimulator11.2" DESTINATION="name=iPhone 6s,OS=10.3.1"
14-
- osx_image: xcode9.2
15-
env: SDK="iphonesimulator11.2" DESTINATION="name=iPhone 6s,OS=9.3"
10+
- osx_image: xcode12.2
11+
env: COVERAGE=code_coverage SDK="iphonesimulator14.2" DESTINATION="name=iPhone 6s,OS=11.4"
12+
- osx_image: xcode12.2
13+
env: SDK="iphonesimulator14.2" DESTINATION="name=iPhone 6s,OS=10.3.1"
1614
before_install:
17-
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
15+
- gem install cocoapods --no-document --quiet
1816
- pod install --repo-update
1917
script:
2018
- set -o pipefail

BUILD

Lines changed: 0 additions & 70 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 8.0.0
2+
3+
This major release drops official support for iOS 9 and bazel.
4+
15
# 7.0.1
26

37
This patch release fixes a bug on iOS 13 where the presented view controller would not be added to

MotionTransitioning.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Pod::Spec.new do |s|
22
s.name = "MotionTransitioning"
33
s.summary = "Light-weight API for building UIViewController transitions."
4-
s.version = "7.0.1"
4+
s.version = "8.0.0"
55
s.authors = "The Material Motion Authors"
66
s.license = "Apache 2.0"
77
s.homepage = "https://github.com/material-motion/transitioning-objc"
88
s.source = { :git => "https://github.com/material-motion/transitioning-objc.git", :tag => "v" + s.version.to_s }
9-
s.platform = :ios, "9.0"
9+
s.platform = :ios, "10.0"
1010
s.requires_arc = true
1111

1212
s.public_header_files = "src/*.h"

Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
workspace 'MotionTransitioning.xcworkspace'
22
use_frameworks!
3-
platform :ios, '9.0'
3+
platform :ios, '10.0'
44

55
target "TransitionsCatalog" do
66
pod 'CatalogByConvention'
@@ -18,7 +18,7 @@ end
1818
post_install do |installer|
1919
installer.pods_project.targets.each do |target|
2020
target.build_configurations.each do |configuration|
21-
configuration.build_settings['SWIFT_VERSION'] = "3.0"
21+
configuration.build_settings['SWIFT_VERSION'] = "5.0"
2222
if target.name.start_with?("MotionTransitioning")
2323
configuration.build_settings['WARNING_CFLAGS'] ="$(inherited) -Wall -Wcast-align -Wconversion -Werror -Wextra -Wimplicit-atomic-properties -Wmissing-prototypes -Wno-sign-conversion -Wno-unused-parameter -Woverlength-strings -Wshadow -Wstrict-selector-match -Wundeclared-selector -Wunreachable-code"
2424
end

Podfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
PODS:
2-
- CatalogByConvention (2.1.1)
3-
- MotionTransitioning (7.0.0)
2+
- CatalogByConvention (2.5.2)
3+
- MotionTransitioning (8.0.0)
44

55
DEPENDENCIES:
66
- CatalogByConvention
77
- MotionTransitioning (from `./`)
88

99
SPEC REPOS:
10-
https://github.com/cocoapods/specs.git:
10+
trunk:
1111
- CatalogByConvention
1212

1313
EXTERNAL SOURCES:
1414
MotionTransitioning:
1515
:path: "./"
1616

1717
SPEC CHECKSUMS:
18-
CatalogByConvention: c3a5319de04250a7cd4649127fcfca5fe3322a43
19-
MotionTransitioning: afdc2fb08fc6e8744dab4f160b3764c9bde59338
18+
CatalogByConvention: ef713654160053be026fa4648dd28caf6b5ca4e1
19+
MotionTransitioning: c54913ff269a0d93291bb113612c2da325f45f74
2020

21-
PODFILE CHECKSUM: c1fb58e87919bf8979e1ee2b4db99797e975d789
21+
PODFILE CHECKSUM: d209f6834e4d16c2a6eca09a6ddcde7e50331cda
2222

23-
COCOAPODS: 1.6.0
23+
COCOAPODS: 1.10.1

WORKSPACE

Lines changed: 0 additions & 54 deletions
This file was deleted.

examples/ContextualExample.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private class ContextualTransition: NSObject, Transition {
110110
isAppearing: context.direction == .backward)
111111

112112
let expand = CABasicAnimation(keyPath: "transform.scale.xy")
113-
expand.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseInEaseOut)
113+
expand.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut)
114114
expand.fromValue = 1
115115
expand.toValue = 2
116116
addAnimationToLayer(expand, snapshotContextView.layer)

examples/CustomPresentationExample.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import MotionTransitioning
2222

2323
class CustomPresentationExampleViewController: ExampleTableViewController {
2424

25-
override init(style: UITableViewStyle) {
25+
override init(style: UITableView.Style) {
2626
super.init(style: style)
2727

2828
transitions = []

examples/PhotoAlbumExample.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public class PhotoAlbumExampleViewController: UICollectionViewController, PhotoA
7575
viewController.currentPhoto = album.photos[indexPath.row]
7676
viewController.mdm_transitionController.transition = PhotoAlbumTransition(backDelegate: self,
7777
foreDelegate: viewController)
78+
viewController.modalPresentationStyle = .custom
7879
present(viewController, animated: true)
7980
}
8081

@@ -161,7 +162,7 @@ class PhotoAlbumViewController: UIViewController, UICollectionViewDataSource, UI
161162

162163
navigationController?.setNavigationBarHidden(true, animated: animated)
163164

164-
let photoIndex = album.photos.index { $0.image == currentPhoto.image }!
165+
let photoIndex = album.photos.firstIndex { $0.image == currentPhoto.image }!
165166
let indexPath = IndexPath(item: photoIndex, section: 0)
166167
collectionView.scrollToItem(at: indexPath, at: .centeredHorizontally, animated: false)
167168
}

0 commit comments

Comments
 (0)