LoopSubscription

public final class LoopSubscription

The interface through which consumers can respond to animation loop updates.

  • Fired during the update phase of each turn of the loop. Contains the elapsed time for the current animation frame.

    Declaration

    Swift

    public let advanced = Event<Double>()
  • The associated loop instance.

    Declaration

    Swift

    public let loop: Loop
  • Any time animation updates are not required, the subscription should be paused for efficiency.

    Declaration

    Swift

    public var paused: Bool = true