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 struct represents the states of a single object to be used in a motion operation, used to create
PropertyData
objects for each object property. Because thestart
andend
properties can represent any value type, it is used byValueAssistant
classes to internally generatePropertyData
objects 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.Note
These state values must be of the same object type as the property located at the
keyPath
. For instance, if thekeyPath
property points to a CGRect object, you must provide CGRect objects for thestart
andend
properties.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 morePhysicsSystem
object.Declaration
Swift
public struct PhysicsConfiguration