TweenableProperty

public protocol TweenableProperty

A property that can be animated on a Tweenable type.

  • The Tweenable type of which the property can be retrieved from and applied to.

    Declaration

    Swift

    associatedtype Target : Tweenable
  • A closure to return the tween animation for an instance of the target. The tween animation is invoked every update cycle to interpolate a new value of the property and apply it back to the target instance.

    Declaration

    Swift

    var animation: ((Target) -> Tween.Animation) { get }