Tempo
@MainActor
public class Tempo
Tempo
is an abstract class that provides a basic structure for sending update beats. Moveable
classes use these beats to calculate new motion interpolation values. Concrete subclasses should call tempoBeatUpdate
with incremental timestamps as necessary.
Warning
This class should not be instantiated directly, as it provides no updates on its own.-
A delegate to subscribe to for tempo updates.
Declaration
Swift
@MainActor public weak var delegate: TempoDelegate?
-
Calling this method on subclasses should cleanup any resources to prepare for deallocation.
Declaration
Swift
@MainActor public func cleanupResources()