Loop

public final class Loop

The animation loop that powers all of the Animation framework.

  • The default loop.

    Declaration

    Swift

    public static let shared = Loop()
  • All currently active subscriptions.

    Declaration

    Swift

    public var subscriptions: [LoopSubscription]
  • Generates and returns a subscription for this loop.

    Note that loops are retained by subscriptions.

    Declaration

    Swift

    public func subscribe() -> LoopSubscription