ChainedAnimation
public class ChainedAnimation : AnimationType
Defines an Animation object with multiple animations to be played.
-
Initializer for the ChainedAnimation object.
Declaration
Swift
init(view: UIView, loop: Bool = false)Parameters
viewthe view of the object.
loopBoolean value indicating whether the animation should loop.
-
Adds a
MixedAnimationto the objects animation list.Declaration
Swift
public func add(animation: MixedAnimation) -> ChainedAnimation -
Adds a
SimpleAnimationto the object’s animation list.Declaration
Swift
public func add(animation: SimpleAnimation) -> ChainedAnimation
-
Starts the first animation on the object’s animation list.
Declaration
Swift
public func startAnimation(completion: ((Bool) -> Void)? = .none)Parameters
completioncompletion handler for when the animation has finished.
ChainedAnimation Class Reference