Commit 45325e08 by Daniel Dahan

Fixed regression where view lifecycle functions were not being called.

parent 45e9f9a4
## 2.13.3
* [issue-1015](https://github.com/CosmicMind/Material/issues/1015): Fixed regression where view lifecycle functions were not being called.
## 2.13.2
* Updated to [Motion 1.3.2](https://github.com/CosmicMind/Motion/releases/tag/1.3.2).
......
Pod::Spec.new do |s|
s.name = 'Material'
s.version = '2.13.2'
s.version = '2.13.3'
s.license = 'BSD-3-Clause'
s.summary = 'A UI/UX framework for creating beautiful applications.'
s.homepage = 'http://cosmicmind.com'
......
Subproject commit 6b95e482892f73c52644c95d84c54a82587032bc
Subproject commit 0c04b36fd1da09d085c624163fd8c7d6a23f6dca
......@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.13.2</string>
<string>2.13.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
......
......@@ -453,7 +453,31 @@ 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,6 +112,26 @@ 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