AnyAnimation
public struct AnyAnimation<Value>: Animation where Value: VectorConvertible
A type-erased wrapper around an animation.
-
The current value of the wrapped animation.
Declaration
Swift
public let value: Value
-
The current velocity of the wrapped animation.
Declaration
Swift
public let velocity: Value
-
The finished state of the wrapped animation.
Declaration
Swift
public let isFinished: Bool
-
Initializes a new type-erased wrapper with the given animation.
Declaration
Swift
public init<T>(_ animation: T) where T: Animation, T.Value == Value
-
Advances the wrapped animation.
Declaration
Swift
public mutating func advance(by time: Double)