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.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.Declaration
Swift
public struct EasingBack
-
EasingBounce provides easing equations that produces successively smaller value peaks, like a bouncing ball.
Remark
See http://easings.net for visual examples.Declaration
Swift
public struct EasingBounce
-
EasingCircular provides easing equations based on circle calculations.
Remark
See http://easings.net for visual examples.Declaration
Swift
public struct EasingCircular
-
EasingCubic provides cubic easing equations.
Remark
See http://easings.net for visual examples.Declaration
Swift
public struct EasingCubic
-
EasingElastic provides easing equations that behave in an elastic fashion.
Remark
See http://easings.net for visual examples.Declaration
Swift
public struct EasingElastic
-
EasingExpo provides exponential easing equations.
Remark
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.
Remark
See http://easings.net for visual examples.Declaration
Swift
public struct EasingLinear
-
EasingQuadratic provides quadratic easing equations.
Remark
See http://easings.net for visual examples.Declaration
Swift
public struct EasingQuadratic
-
EasingQuartic provides quartic easing equations.
Remark
See http://easings.net for visual examples.Declaration
Swift
public struct EasingQuartic
-
EasingQuintic provides quintic easing equations.
Remark
See http://easings.net for visual examples.Declaration
Swift
public struct EasingQuintic
-
EasingSine provides easing equations based on sine calculations.
Remark
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 model represents a single path element in a path.
See moreDeclaration
Swift
public struct PathElement
-
This model is used to configure a
See morePhysicsSystem
object.Declaration
Swift
public struct PhysicsConfiguration
-
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 moreDeclaration
Swift
@MainActor public struct PropertyData
-
This struct represents the states of a single object property, to be used in a motion operation. Because the
start
andend
properties can represent any value type, it is used to createMotion
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 thepath
property points to a CGRect object, you must provide CGRect objects for thestart
andend
properties.Declaration
Swift
public struct PropertyStates