TempoDriven

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.

Important

While you aren’t required to implement this protocol in order to update your own custom Moveable classes, it is the preferred way to interact with the MotionMachine ecosystem unless your requirements prevent using Tempo objects for updating your value interpolations.
  • 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’s TempoDelegate delegate methods.

    Declaration

    Swift

    var tempo: Tempo?
  • Tells a TempoDriven object to cease listening to updates from its Tempo object.

    Seealso

    tempo

    Declaration

    Swift

    func stopTempoUpdates()