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.
  • This function provides an equation in which the value moves beyond the starting value before moving to the ending value.

    Declaration

    Swift

    public static func easeIn(overshoot over: 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.

  • This function provides an equation in which the value moves beyond the ending value before moving to the ending value.

    Declaration

    Swift

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

    Parameters

    overshoot

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

  • This function provides an equation in which the value moves beyond both the starting and ending values.

    Declaration

    Swift

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

    Parameters

    overshoot

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