Tweenable

public protocol Tweenable

A type that can animate tweenable properties on itself.

  • The type of TweenableProperty that can be animated on this object.

    Declaration

    Swift

    associatedtype TweenProperty : TweenableProperty where Self == Self.TweenProperty.Target
  • tween(to:) Default implementation

    Animates tweenable properties from the target’s current values to the desired values.

    Default Implementation

    Declaration

    Swift

    @discardableResult
    func tween(to properties: TweenProperty...) -> Tween

    Parameters

    properties

    The properties to animate.

    Return Value

    The Tween control for the animation.

  • tween(from:) Default implementation

    Animates tweenable properties from desired values to the target’s current values.

    Default Implementation

    Declaration

    Swift

    @discardableResult
    func tween(from properties: TweenProperty...) -> Tween

    Parameters

    properties

    The properties to animate.

    Return Value

    The Tween control for the animation.