Tweenable
public protocol Tweenable
A type that can animate tweenable properties on itself.
-
The type of
TweenablePropertythat can be animated on this object.Declaration
Swift
associatedtype TweenProperty : TweenableProperty where Self == Self.TweenProperty.Target -
tween(to:)Default implementationAnimates tweenable properties from the target’s current values to the desired values.
Default Implementation
Declaration
Swift
@discardableResult func tween(to properties: TweenProperty...) -> TweenParameters
propertiesThe properties to animate.
Return Value
The
Tweencontrol for the animation. -
tween(from:)Default implementationAnimates tweenable properties from desired values to the target’s current values.
Default Implementation
Declaration
Swift
@discardableResult func tween(from properties: TweenProperty...) -> TweenParameters
propertiesThe properties to animate.
Return Value
The
Tweencontrol for the animation.
View on GitHub
Tweenable Protocol Reference