MoveableCollection
@MainActor
public protocol MoveableCollection
This protocol declares methods and properties that must be adopted by custom classes which control other Moveable
classes in order to participate in the MotionMachine ecosystem. All standard MotionMachine collection classes (MotionSequence, MotionGroup) conform to this protocol.
-
A
CollectionReversingMode
enum which defines the behavior of aMoveable
class when itsreversing
property is set totrue
. In the standard MotionMachine classes onlyMotionSequence
currently uses this property to alter its behavior, but they all propagate changes to this property down to their collection children.Note
Though classes implementing this property don’t need to alter their own behavior based on the value that is set, they do need to pass the value to all of its children which conform to this protocol.Declaration
Swift
@MainActor var reversingMode: CollectionReversingMode { get set }