Commit 0c04b36f by Daniel Dahan

Fixed regression where view lifecycle functions were not being called.

parent 6b95e482
## 1.3.3
* [issue-24](https://github.com/CosmicMind/Motion/issues/24): Fixed regression where view lifecycle functions were not being called.
## 1.3.2 ## 1.3.2
* Fixed unbalanced calls in Motion transitions. * Fixed unbalanced calls in Motion transitions.
......
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'Motion' s.name = 'Motion'
s.version = '1.3.2' s.version = '1.3.3'
s.license = 'MIT' s.license = 'MIT'
s.summary = 'A library used to create beautiful animations and transitions for Apple devices.' s.summary = 'A library used to create beautiful animations and transitions for Apple devices.'
s.homepage = 'http://cosmicmind.com' s.homepage = 'http://cosmicmind.com'
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>FMWK</string> <string>FMWK</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.3.2</string> <string>1.3.3</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string> <string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key> <key>NSPrincipalClass</key>
......
...@@ -546,6 +546,9 @@ internal extension MotionTransition { ...@@ -546,6 +546,9 @@ internal extension MotionTransition {
return return
} }
fvc.beginAppearanceTransition(false, animated: true)
tvc.beginAppearanceTransition(true, animated: true)
processForMotionDelegate(viewController: fvc) { [weak self] in processForMotionDelegate(viewController: fvc) { [weak self] in
guard let `self` = self else { guard let `self` = self else {
return return
...@@ -580,6 +583,9 @@ internal extension MotionTransition { ...@@ -580,6 +583,9 @@ internal extension MotionTransition {
return return
} }
tvc.endAppearanceTransition()
fvc.endAppearanceTransition()
processForMotionDelegate(viewController: fvc) { [weak self] in processForMotionDelegate(viewController: fvc) { [weak self] in
guard let `self` = self else { guard let `self` = self else {
return return
...@@ -616,6 +622,9 @@ internal extension MotionTransition { ...@@ -616,6 +622,9 @@ internal extension MotionTransition {
return return
} }
tvc.endAppearanceTransition()
fvc.endAppearanceTransition()
processForMotionDelegate(viewController: fvc) { [weak self] in processForMotionDelegate(viewController: fvc) { [weak self] in
guard let `self` = self else { guard let `self` = self else {
return return
......
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