Timing Functions

  • Conforming types can be used to convert linear input time (0.0 -> 1.0) to transformed output time (also 0.0 -> 1.0).

    See more

    Declaration

    Swift

    public protocol TimingFunctionType
  • Returns the input time, unmodified.

    See more

    Declaration

    Swift

    public struct LinearTimingFunction: TimingFunctionType
  • Output time is calculated as (1.0-x).

    See more

    Declaration

    Swift

    public struct ReversedTimingFunction: TimingFunctionType
  • A bezier curve, often used to calculate timing functions.

    See more

    Declaration

    Swift

    public struct UnitBezier