@@ -55,7 +55,7 @@ public extension UIView {
5555 /// - parameter completion: a completion closure to execute when the animation finished.
5656 ///
5757 public func tada( completion: @escaping ( ) -> Void = { } ) {
58- chainAnimator. basic. property ( " transform.scale " ) . fromValue ( 1.0 ) . toValue ( 1.1 ) . duration ( 0.15 ) . combineBasic ( ) . property ( " transform.rotation " ) . byValue ( M_PI / 21.0 ) . duration ( 0.1 ) . autoreverses ( ) . repeatCount ( 2 ) . combineBasic ( ) . beginTime ( 0.1 ) . property ( " transform.rotation " ) . byValue ( - M_PI / 18.0 ) . duration ( 0.1 ) . autoreverses ( ) . repeatCount ( 2 ) . nextToBasic ( ) . property ( " transform.scale " ) . toValue ( 1.0 ) . duration ( 0.15 ) . start ( completion: completion)
58+ chainAnimator. basic. property ( " transform.scale " ) . fromValue ( 1.0 ) . toValue ( 1.1 ) . duration ( 0.15 ) . combineBasic ( ) . property ( " transform.rotation " ) . byValue ( . pi / 21.0 ) . duration ( 0.1 ) . autoreverses ( ) . repeatCount ( 2 ) . combineBasic ( ) . beginTime ( 0.1 ) . property ( " transform.rotation " ) . byValue ( - . pi / 18.0 ) . duration ( 0.1 ) . autoreverses ( ) . repeatCount ( 2 ) . nextToBasic ( ) . property ( " transform.scale " ) . toValue ( 1.0 ) . duration ( 0.15 ) . start ( completion: completion)
5959 }
6060 /// Run a \`bonuce\` animation effect on the receiver.
6161 ///
@@ -95,7 +95,7 @@ public extension UIView {
9595 /// - Parameter completion: a completion closure to execute when the animation finished.
9696 ///
9797 public func swing( completion: @escaping ( ) -> Void = { } ) {
98- chainAnimator. basic. property ( " transform.rotation " ) . byValue ( M_PI / 21.0 ) . duration ( 0.1 ) . autoreverses ( ) . repeatCount ( 2 ) . combineBasic ( ) . beginTime ( 0.1 ) . property ( " transform.rotation " ) . byValue ( - M_PI / 18.0 ) . duration ( 0.1 ) . autoreverses ( ) . repeatCount ( 2 ) . nextToBasic ( ) . property ( " transform.scale " ) . toValue ( 1.0 ) . duration ( 0.15 ) . start ( completion: completion)
98+ chainAnimator. basic. property ( " transform.rotation " ) . byValue ( . pi / 21.0 ) . duration ( 0.1 ) . autoreverses ( ) . repeatCount ( 2 ) . combineBasic ( ) . beginTime ( 0.1 ) . property ( " transform.rotation " ) . byValue ( - . pi / 18.0 ) . duration ( 0.1 ) . autoreverses ( ) . repeatCount ( 2 ) . nextToBasic ( ) . property ( " transform.scale " ) . toValue ( 1.0 ) . duration ( 0.15 ) . start ( completion: completion)
9999 }
100100 /// Run a \`snap\` animation effect on the receiver.
101101 ///
@@ -132,7 +132,7 @@ public extension UIView {
132132 /// - Parameter completion: a completion closure to execute when the animation finished.
133133 ///
134134 public func drop( completion: @escaping ( ) -> Void = { } ) {
135- chainAnimator. basic. anchorToRightTop ( ) . property ( " transform.rotation " ) . toValue ( - M_PI / 18 * 2 ) . duration ( 1.0 ) . combineBasic ( ) . property ( " position.y " ) . fromValue ( layer. position. y) . toValue ( UIScreen . main. bounds. height+ layer. position. y) . duration ( 0.5 ) . easeInCubic ( ) . start ( completion: completion)
135+ chainAnimator. basic. anchorToRightTop ( ) . property ( " transform.rotation " ) . toValue ( - Double . pi / 18 * 2 ) . duration ( 1.0 ) . combineBasic ( ) . property ( " position.y " ) . fromValue ( layer. position. y) . toValue ( UIScreen . main. bounds. height+ layer. position. y) . duration ( 0.5 ) . easeInCubic ( ) . start ( completion: completion)
136136 }
137137 /// Run a morph animation effect on the receiver.
138138 ///
0 commit comments