Structures
The following structures are available globally.
-
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.See moreWarning
These equations produce easing values extending beyond the starting and ending values, which may produce unpredictable results for properties which have strict bounds limits.Declaration
Swift
public struct EasingBack -
EasingBounce provides easing equations that produces successively smaller value peaks, like a bouncing ball.
See moreRemark
See http://easings.net for visual examples.Declaration
Swift
public struct EasingBounce -
EasingCircular provides easing equations based on circle calculations.
See moreRemark
See http://easings.net for visual examples.Declaration
Swift
public struct EasingCircular -
EasingCubic provides cubic easing equations.
See moreRemark
See http://easings.net for visual examples.Declaration
Swift
public struct EasingCubic -
EasingElastic provides easing equations that behave in an elastic fashion.
See moreRemark
See http://easings.net for visual examples.Declaration
Swift
public struct EasingElastic -
EasingExpo provides exponential easing equations.
See moreRemark
See http://easings.net for visual examples.Declaration
Swift
public struct EasingExpo -
EasingLinear provides a linear easing equation, which increments by a constant value over time.
See moreRemark
See http://easings.net for visual examples.Declaration
Swift
public struct EasingLinear -
EasingQuadratic provides quadratic easing equations.
See moreRemark
See http://easings.net for visual examples.Declaration
Swift
public struct EasingQuadratic -
EasingQuartic provides quartic easing equations.
See moreRemark
See http://easings.net for visual examples.Declaration
Swift
public struct EasingQuartic -
EasingQuintic provides quintic easing equations.
See moreRemark
See http://easings.net for visual examples.Declaration
Swift
public struct EasingQuintic -
EasingSine provides easing equations based on sine calculations.
See moreRemark
See http://easings.net for visual examples.Declaration
Swift
public struct EasingSine -
Utility methods
Declaration
Swift
public struct MotionUtils -
This struct provides utility methods for Motion classes.
See moreDeclaration
Swift
@MainActor public struct MotionSupport -
This struct represents the states of a single object to be used in a motion operation, used to create
PropertyDataobjects for each object property. Because thestartandendproperties can represent any value type, it is used byValueAssistantclasses to internally generatePropertyDataobjects for each property value of the object. As such, it is a convenient way to set up many property value interpolations for an object by simply passing in representations of that object at its starting and ending points.See moreNote
These state values must be of the same object type as the property located at the
keyPath. For instance, if thekeyPathproperty points to a CGRect object, you must provide CGRect objects for thestartandendproperties.Declaration
Swift
public struct MotionState<RootClass, PropertyType> -
This model represents a single path element in a path.
See moreDeclaration
Swift
public struct PathElement -
This model is used to configure a
See morePhysicsSystemobject.Declaration
Swift
public struct PhysicsConfiguration
View on GitHub
Structures Reference