MotionUpdateDelegate
@MainActor
public protocol MotionUpdateDelegate : AnyObject
This delegate protocol defines a status update method in order for Moveable objects to communicate with one another. MotionMachine collection classes use this protocol method to keep track of child motion status changes. Any custom Moveable classes must send MoveableStatus status updates using this protocol.
-
This delegate method is called when a
Moveableobject has updated its status.Declaration
Swift
@MainActor func motionStatusUpdated(forMotion motion: Moveable, updateType status: MoveableStatus)Parameters
moverA
Moveableobject that calls this delegate method.typeThe type of status update being sent.
View on GitHub