Commit 1166d3c2 by Daniel Dahan

fixed flickering issue with UINavigationController container

parent abc65458
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'Motion' s.name = 'Motion'
s.version = '1.0.4' s.version = '1.0.5'
s.license = 'BSD-3-Clause' s.license = 'BSD-3-Clause'
s.summary = 'Seamless animations and transitions in Swift.' s.summary = 'Seamless animations and transitions in Swift.'
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.0.4</string> <string>1.0.5</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string> <string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key> <key>NSPrincipalClass</key>
......
...@@ -550,7 +550,7 @@ extension Motion { ...@@ -550,7 +550,7 @@ extension Motion {
/// Prepares the transitionSnapshot. /// Prepares the transitionSnapshot.
fileprivate func prepareTransitionSnapshot() { fileprivate func prepareTransitionSnapshot() {
transitionSnapshot = fromView.transitionSnapshot(afterUpdates: true, shouldHide: false) transitionSnapshot = fromView.transitionSnapshot(afterUpdates: true, shouldHide: false)
transitionSnapshot.frame = fromView.bounds transitionSnapshot.frame = fromView.frame
containerView.insertSubview(transitionSnapshot, aboveSubview: fromView) containerView.insertSubview(transitionSnapshot, aboveSubview: fromView)
} }
...@@ -615,10 +615,6 @@ extension Motion { ...@@ -615,10 +615,6 @@ extension Motion {
snapshotAnimations.append(Motion.transform(transform: to.motionTransform)) snapshotAnimations.append(Motion.transform(transform: to.motionTransform))
snapshotAnimations.append(Motion.background(color: to.backgroundColor ?? .clear)) snapshotAnimations.append(Motion.background(color: to.backgroundColor ?? .clear))
if let v = to.layer.shadowPath {
snapshotAnimations.append(Motion.shadow(path: v))
}
if let path = to.layer.shadowPath { if let path = to.layer.shadowPath {
let shadowPath = Motion.shadow(path: path) let shadowPath = Motion.shadow(path: path)
shadowPath.fromValue = fromView.layer.shadowPath shadowPath.fromValue = fromView.layer.shadowPath
......
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