Classes
The following classes are available globally.
-
Motion handles a single motion operation on one or more properties, interpolating between specified starting and ending values.
See moreDeclaration
Swift
@MainActor public class Motion : Moveable, Additive, TempoDriven, PropertyDataDelegate
-
MotionGroup handles the movement of one or more objects which conform to the
See moreMoveable
protocol, either being instances ofMotion
or other custom classes. The MotionGroup class is a good solution when you want to easily synchronize the movements of manyMoveable
objects.Declaration
Swift
@MainActor public class MotionGroup : Moveable, MoveableCollection, TempoDriven, MotionUpdateDelegate
-
A singleton configuration class for MotionMachine.
See moreDeclaration
Swift
@MainActor public final class MMConfiguration
-
MotionSequence moves a collection of objects conforming to the
See moreMoveable
protocol in sequential order. MotionSequence provides a powerful and easy way of chaining together individual motions to create complex animations.Declaration
Swift
@MainActor public class MotionSequence : Moveable, MoveableCollection, TempoDriven, MotionUpdateDelegate
-
PathMotion handles a single motion operation of a coordinate point along a
See moreCGPath
. It does not directly acceptPropertyData
objects, but instead transforms a value between 0.0 and 1.0, representing the length of the associated path. Using this value, it updates the current point on the path.Declaration
Swift
@MainActor public class PathMotion : Moveable, TempoDriven, PropertyDataDelegate
-
PathPhysicsMotion handles a single motion operation of a coordinate point along a
See moreCGPath
using a physics system to update the value with a decaying velocity. It does not directly acceptPropertyData
objects, but instead transforms a value between 0.0 and 1.0, representing the length of the associated path. Using this value, it updates the current point on the path.Declaration
Swift
@MainActor public class PathPhysicsMotion : Moveable, TempoDriven, PropertyDataDelegate
-
This state object is used in conjunction with
See morePathMotion
to handle the movement of a point along a path.Declaration
Swift
public final class PathState : NSObject, @unchecked Sendable
-
PhysicsMotion handles a single motion operation on one or more properties, using a physics system to update values with decaying velocity.
See moreDeclaration
Swift
@MainActor public class PhysicsMotion : Moveable, Additive, TempoDriven, PropertyDataDelegate
-
A simple physics engine used with
See morePhysicsMotion
andPathPhysicsMotion
to calculate values for motions. It primarily uses a constantvelocity
, plus afriction
component, to update movements of values over time. As of version 2.2.0 it also supports simple collision handling between two optional fixed start and end points, and arestitution
value to control the value’s elasticity when colliding.Declaration
Swift
public class PhysicsSystem : PhysicsSolving
-
Tempo
is an abstract class that provides a basic structure for sending update beats.Moveable
classes use these beats to calculate new motion interpolation values. Concrete subclasses should calltempoBeatUpdate
with incremental timestamps as necessary.Warning
This class should not be instantiated directly, as it provides no updates on its own.Declaration
Swift
@MainActor public class Tempo
-
CGStructAssistant provides support for several Core Graphics struct types, including
See moreCGPoint
,CGSize
,CGRect
,CGVector
,CGAffineTransform
, as well as QuartzCore’sCATransform3D
type. It also provides support for theNSNumber
type.Declaration
Swift
@MainActor public final class CGStructAssistant : ValueAssistant
-
CIColorAssistant provides support for Core Image’s
See moreCIColor
type.Declaration
Swift
@MainActor public final class CIColorAssistant : ValueAssistant
-
UIColorAssistant provides support for the
See moreUIColor
type.Declaration
Swift
@MainActor public final class UIColorAssistant : ValueAssistant
-
UIKitStructAssistant provides support for the UIKit structs
See moreUIEdgeInsets
andUIOffset
.Declaration
Swift
@MainActor public final class UIKitStructAssistant : ValueAssistant
-
The
See moreValueAssistantGroup
class enables multipleValueAssistant
objects to be attached to a single motion class.Declaration
Swift
@MainActor public final class ValueAssistantGroup : ValueAssistant