TempoDriven
@MainActor
public protocol TempoDriven : TempoDelegate
This protocol represents objects that subscribe to a Tempo
object’s beats. Every movement of a value occurs because time has changed. These beats drive the motion, sending timestamps by which delta values can be calculated. All standard MotionMachine motion classes conform to this protocol.
-
A concrete
Tempo
subclass that provides an update “beat” to drive a motion.Note
It is expected that classes implementing this protocol also subscribe to the Tempo object’sTempoDelegate
delegate methods.Declaration
Swift
@MainActor var tempo: Tempo? { get set }
-
Tells a
TempoDriven
object to cease listening to updates from itsTempo
object.Seealso
tempoDeclaration
Swift
@MainActor func stopTempoUpdates()