Structures

The following structures are available globally.

  • This struct represents a single property or object and information about the state of its value interpolation, as well as metadata which allows a Motion instance to get and set these values.

    See more

    Declaration

    Swift

    public struct PropertyData
  • This struct represents the states of a single object property, to be used in a motion operation. Because the start and end properties can represent any value type, it is used to create Motion objects that conveniently handle many property value interpolations by simply passing in representations of that object at its starting and ending points.

    Remark

    These state values must be of the same object type as the property located at the keypath. For instance, if the path property points to a CGRect object, you must provide CGRect objects for the start and end properties.
    See more

    Declaration

    Swift

    public struct PropertyStates
  • EasingLinear provides a linear easing equation, which increments by a constant value over time.

    Remark

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

    Declaration

    Swift

    public struct EasingLinear
  • EasingBounce provides easing equations that have successively smaller value peaks, like a bouncing ball.

    Remark

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

    Declaration

    Swift

    public struct EasingBounce
  • An integer options set providing possible initialization options for a Moveable object.

    See more

    Declaration

    Swift

    public struct MotionOptions : OptionSet
  • Utility methods

    Declaration

    Swift

    public struct MotionUtils
  • 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.
    See more

    Declaration

    Swift

    public struct EasingBack
  • This struct provides utility methods for Motion classes.

    See more

    Declaration

    Swift

    public struct MotionSupport
  • EasingElastic provides easing equations that behave in an elastic fashion.

    Remark

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

    Declaration

    Swift

    public struct EasingElastic