TempoProviding

@MainActor
public protocol TempoProviding

This protocol represents an object that sends a tempo of updates to motion objects. Moveable classes use these beats to calculate new motion interpolation values. Objects that conform to this protocol should use the TempoDelegate‘s method tempoBeatUpdate to send incremental timestamps as necessary.

  • A delegate to subscribe to for tempo updates. Concrete implementations of this property should be marked as a weak reference.

    Declaration

    Swift

    @MainActor
    var delegate: TempoDelegate? { get set }
  • When this method is called, objects conforming to this protocol should cleanup any resources to prepare for deallocation.

    Declaration

    Swift

    @MainActor
    func cleanupResources()