Commit 00a46e33 by Daniel Dahan

development: added duration to animation group

parent 469f4cfc
...@@ -194,7 +194,7 @@ extension CALayer { ...@@ -194,7 +194,7 @@ extension CALayer {
} }
} }
animate(animation: Motion.animate(group: a)) animate(animation: Motion.animate(group: a, duration: duration))
} }
open func motion(delay: TimeInterval, animations: MotionAnimation...) { open func motion(delay: TimeInterval, animations: MotionAnimation...) {
...@@ -262,6 +262,14 @@ extension UIView { ...@@ -262,6 +262,14 @@ extension UIView {
open func motion(delay: TimeInterval, animations: [MotionAnimation]) { open func motion(delay: TimeInterval, animations: [MotionAnimation]) {
layer.motion(delay: delay, animations: animations) layer.motion(delay: delay, animations: animations)
} }
open func motion(delay: TimeInterval, duration: TimeInterval, animations: MotionAnimation...) {
layer.motion(delay: delay, duration: duration, animations: animations)
}
open func motion(delay: TimeInterval, duration: TimeInterval, animations: [MotionAnimation]) {
layer.motion(delay: delay, duration: duration, animations: animations)
}
} }
extension CABasicAnimation { extension CABasicAnimation {
......
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