AnimatorContext
public final class AnimatorContext
Creates and manages Animator
instances, retaining them until completion.
-
The default context.
Declaration
Swift
public static let shared = AnimatorContext()
-
Creates a new animator context.
Declaration
Swift
public init()
-
Generates a new animator instance to run the given animation.
Declaration
Swift
public func animate<A: AnimationType>(_ animation: A) -> Animator<A>
Parameters
animation
The animation to run.
Return Value
The newly generated
Animator
instance.