Commit abc65458 by Daniel Dahan

fixed CocoaPods issues

parent 78bf1d75
...@@ -4,7 +4,7 @@ Motion is a tool used to create transition animations between view controllers. ...@@ -4,7 +4,7 @@ Motion is a tool used to create transition animations between view controllers.
## Sample ## Sample
Take a look at a sample [Photo Collection](https://github.com/CosmicMind/Samples/tree/master/Motion/PhotoCollection) project. Take a look at a sample [Photo Collection](https://github.com/CosmicMind/Samples/tree/master/Projects/Programmatic/PhotoCollection) project.
![Motion Photo Collection Sample](http://www.cosmicmind.com/motion/cosmicmind_motion_sample.gif) ![Motion Photo Collection Sample](http://www.cosmicmind.com/motion/cosmicmind_motion_sample.gif)
......
...@@ -615,26 +615,26 @@ extension Motion { ...@@ -615,26 +615,26 @@ 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.shadowPath { if let v = to.layer.shadowPath {
snapshotAnimations.append(Motion.shadow(path: v)) snapshotAnimations.append(Motion.shadow(path: v))
} }
if let path = to.shadowPath { if let path = to.layer.shadowPath {
let shadowPath = Motion.shadow(path: path) let shadowPath = Motion.shadow(path: path)
shadowPath.fromValue = fromView.shadowPath shadowPath.fromValue = fromView.layer.shadowPath
snapshotAnimations.append(shadowPath) snapshotAnimations.append(shadowPath)
} }
let shadowOffset = Motion.shadow(offset: to.shadowOffset) let shadowOffset = Motion.shadow(offset: to.layer.shadowOffset)
shadowOffset.fromValue = fromView.shadowOffset shadowOffset.fromValue = fromView.layer.shadowOffset
snapshotAnimations.append(shadowOffset) snapshotAnimations.append(shadowOffset)
let shadowOpacity = Motion.shadow(opacity: to.shadowOpacity) let shadowOpacity = Motion.shadow(opacity: to.layer.shadowOpacity)
shadowOpacity.fromValue = fromView.shadowOpacity shadowOpacity.fromValue = fromView.layer.shadowOpacity
snapshotAnimations.append(shadowOpacity) snapshotAnimations.append(shadowOpacity)
let shadowRadius = Motion.shadow(radius: to.shadowRadius) let shadowRadius = Motion.shadow(radius: to.layer.shadowRadius)
shadowRadius.fromValue = fromView.shadowRadius shadowRadius.fromValue = fromView.layer.shadowRadius
snapshotAnimations.append(shadowRadius) snapshotAnimations.append(shadowRadius)
snapshotChildAnimations.append(cornerRadiusAnimation) snapshotChildAnimations.append(cornerRadiusAnimation)
......
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