Commit b181baab by Daniel Dahan

Fixed unbalanced calls in Motion transitions.

parent 7912ff44
## 2.13.2
* Updated to [Motion 1.3.2](https://github.com/CosmicMind/Motion/releases/tag/1.3.2).
* Fixed unbalanced calls in Motion transitions.
## 2.13.1
* Updated to [Motino 1.3.1](https://github.com/CosmicMind/Motion/releases/tag/1.3.1).
......
Subproject commit aee082d3a75b65dfb01782346e6a9aebc2a68c4f
Subproject commit 6b95e482892f73c52644c95d84c54a82587032bc
......@@ -454,30 +454,6 @@ open class NavigationDrawerController: TransitionController {
rootViewController.view.frame = container.bounds
}
open override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
leftViewController?.beginAppearanceTransition(true, animated: animated)
rightViewController?.beginAppearanceTransition(true, animated: animated)
}
open override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
leftViewController?.endAppearanceTransition()
rightViewController?.endAppearanceTransition()
}
open override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
leftViewController?.beginAppearanceTransition(false, animated: animated)
rightViewController?.beginAppearanceTransition(false, animated: animated)
}
open override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
leftViewController?.endAppearanceTransition()
rightViewController?.endAppearanceTransition()
}
open override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
super.viewWillTransition(to: size, with: coordinator)
// Ensures the view is isHidden.
......
......@@ -112,26 +112,6 @@ open class TransitionController: UIViewController {
prepare()
}
open override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
rootViewController.beginAppearanceTransition(true, animated: animated)
}
open override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
rootViewController.endAppearanceTransition()
}
open override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
rootViewController.beginAppearanceTransition(false, animated: animated)
}
open override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
rootViewController.endAppearanceTransition()
}
open override func viewWillLayoutSubviews() {
super.viewWillLayoutSubviews()
layoutSubviews()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment