DisplayLinkTempo
@MainActor
public class DisplayLinkTempo : TempoProviding
DisplayLinkTempo chooses the appropriate TempoProviding class to send tempo updates that are synchronized with the refresh rate of the display. On Mac, the MacDisplayLinkTempo
class is used, and on other platforms the CATempo
class is used. Both classes use CADisplayLink
.
-
Declaration
Swift
@MainActor public var delegate: (any TempoDelegate)? { get set }
-
Undocumented
Declaration
Swift
@MainActor public var tempo: TempoProviding?
-
Declaration
Swift
@MainActor public func cleanupResources()