Loop
public final class Loop
An object that produces an observable sequence of frames that are synchronized to the device’s display refresh rate.
-
Creates a new loop.
The newly instantiated loop begins in a paused state.
Declaration
Swift
public init()
-
Pauses the loop (no frames will be produced while paused is
true
).Declaration
Swift
public var paused: Bool
-
Declaration
Swift
public func observe(_ observer: @escaping (Frame) -> Void) -> Subscription
-
Info about a particular frame.
See moreDeclaration
Swift
public struct Frame : Equatable