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

Commit 994fd02

Browse files
author
Jeff Verkoeyen
committed
Merge branch 'release-candidate' into stable
2 parents 1991d50 + 37fb9de commit 994fd02

14 files changed

+38
-21
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# 5.0.0
2+
3+
This major change introduces a breaking API change for Swift clients.
4+
5+
## Breaking changes
6+
7+
**Swift only**: The UIViewController extension property `transitionController` has been renamed to `mdm_transitionController`.
8+
9+
## Source changes
10+
11+
* [[breaking] Rename the transitionController Swift API to mdm_transitionController. (#59)](https://github.com/material-motion/motion-transitioning-objc/commit/7b3f0c28bc43ed25248fad2e197228fc815b0909) (featherless)
12+
13+
## API changes
14+
15+
### UIViewController
16+
17+
**renamed (swift)** method: `transitionController` to `mdm_transitionController`.
18+
119
# 4.0.2
220

321
This patch release fixes a bug where the frames of custom presented views would be incorrectly set

MotionTransitioning.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = "MotionTransitioning"
33
s.summary = "Light-weight API for building UIViewController transitions."
4-
s.version = "4.0.2"
4+
s.version = "5.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"

Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PODS:
22
- CatalogByConvention (2.1.1)
3-
- MotionTransitioning (4.0.2)
3+
- MotionTransitioning (5.0.0)
44

55
DEPENDENCIES:
66
- CatalogByConvention
@@ -12,7 +12,7 @@ EXTERNAL SOURCES:
1212

1313
SPEC CHECKSUMS:
1414
CatalogByConvention: c3a5319de04250a7cd4649127fcfca5fe3322a43
15-
MotionTransitioning: 9885e68bd1501f1f8244b2e40081acd8cf3ac461
15+
MotionTransitioning: 23d25edc2f4606efb922403cbac6d81af37aa33a
1616

1717
PODFILE CHECKSUM: 25d5942fb7698339a03667bb46c3fbb77529b92d
1818

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ you can pick the custom transition you want to use:
1313

1414
```swift
1515
let viewController = MyViewController()
16-
viewController.transitionController.transition = CustomTransition()
16+
viewController.mdm_transitionController.transition = CustomTransition()
1717
present(viewController, animated: true)
1818
```
1919

@@ -129,7 +129,7 @@ and dismissal of our view controller:
129129
130130
```swift
131131
let viewController = MyViewController()
132-
viewController.transitionController.transition = FadeTransition()
132+
viewController.mdm_transitionController.transition = FadeTransition()
133133
present(viewController, animated: true)
134134
```
135135

examples/ContextualExample.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ContextualExampleViewController: ExampleViewController {
3535
// Note that in this example we're populating the contextual transition with the tapped view.
3636
// Our rudimentary transition will animate the context view to the center of the screen from its
3737
// current location.
38-
controller.transitionController.transition = CompositeTransition(transitions: [
38+
controller.mdm_transitionController.transition = CompositeTransition(transitions: [
3939
FadeTransition(target: .foreView),
4040
ContextualTransition(contextView: tapGesture.view!)
4141
])

examples/CustomPresentationExample.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ extension CustomPresentationExampleViewController {
165165
extension CustomPresentationExampleViewController {
166166
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
167167
let modal = ModalViewController()
168-
modal.transitionController.transition = transitions[indexPath.row].transition
168+
modal.mdm_transitionController.transition = transitions[indexPath.row].transition
169169
showDetailViewController(modal, sender: self)
170170
}
171171
}

examples/FadeExample.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class FadeExampleViewController: ExampleViewController {
3030
// controller that you'll make use of is the `transition` property. Setting this property will
3131
// dictate how the view controller is presented. For this example we've built a custom
3232
// FadeTransition, so we'll make use of that now:
33-
modalViewController.transitionController.transition = FadeTransition(target: .foreView)
33+
modalViewController.mdm_transitionController.transition = FadeTransition(target: .foreView)
3434

3535
// Note that once we assign the transition object to the view controller, the transition will
3636
// govern all subsequent presentations and dismissals of that view controller instance. If we

examples/MenuExample.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class MenuExampleViewController: ExampleViewController {
2121

2222
func didTap() {
2323
let modalViewController = ModalViewController()
24-
modalViewController.transitionController.transition = MenuTransition()
24+
modalViewController.mdm_transitionController.transition = MenuTransition()
2525
present(modalViewController, animated: true)
2626
}
2727

examples/NavControllerFadeExample.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class NavControllerFadeExampleViewController: ExampleViewController {
3131
// controller that you'll make use of is the `transition` property. Setting this property will
3232
// dictate how the view controller is presented. For this example we've built a custom
3333
// FadeTransition, so we'll make use of that now:
34-
modalViewController.transitionController.transition = FadeTransition(target: .foreView)
34+
modalViewController.mdm_transitionController.transition = FadeTransition(target: .foreView)
3535

3636
cachedNavDelegate = navigationController?.delegate
3737

examples/PhotoAlbumExample.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public class PhotoAlbumExampleViewController: UICollectionViewController, PhotoA
7373
public override func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
7474
let viewController = PhotoAlbumViewController(album: album)
7575
viewController.currentPhoto = album.photos[indexPath.row]
76-
viewController.transitionController.transition = PhotoAlbumTransition(backDelegate: self,
76+
viewController.mdm_transitionController.transition = PhotoAlbumTransition(backDelegate: self,
7777
foreDelegate: viewController)
7878
present(viewController, animated: true)
7979
}

0 commit comments

Comments
 (0)