EasingBack

public struct EasingBack

EasingBack provides easing equations which move beyond the specified starting and ending values and snap back, as if attached to a rubber band. With modest overshoot values, this easing type can provide a more organic feel when animating visual elements like UIViews and UI.

Remark

See http://easings.net for visual examples.

Warning

These equations produce easing values extending beyond the starting and ending values, which may produce unpredictable results for properties which have strict bounds limits.
  • Provides an easing equation in which the value moves beyond the starting value before moving to the ending value.

    Declaration

    Swift

    public static func easeIn(overshoot: Double = 0.1) -> EasingUpdateClosure

    Parameters

    overshoot

    Provides a way to modify how far the starting value will be overshot. 0.0 to 1.0 is a reasonable range to use.

    Return Value

    Returns a closure containing the easing equation.

  • Provides an easing equation in which the value moves beyond the ending value before moving to the ending value.

    Declaration

    Swift

    public static func easeOut(overshoot: Double = 0.1) -> EasingUpdateClosure

    Parameters

    overshoot

    Provides a way to modify how far the starting value will be overshot. 0.0 to 1.0 is a reasonable range to use.

    Return Value

    Returns a closure containing the easing equation.

  • Provides an easing equation in which the value moves beyond both the starting and ending values.

    Declaration

    Swift

    public static func easeInOut(overshoot: Double = 0.1) -> EasingUpdateClosure

    Parameters

    overshoot

    Provides a way to modify how far the starting value will be overshot. 0.0 to 1.0 is a reasonable range to use.

    Return Value

    Returns a closure containing the easing equation.