AirshipSceneController

@MainActor
public class AirshipSceneController : ObservableObject

Exposes Scene controls to a custom view.

This class is an ObservableObject that can be used to control navigation flow, such as moving forward and backward, and locking the navigation. It is designed to be used with SwiftUI and must be accessed on the main actor.

  • Dismisses the current scene.

    Declaration

    Swift

    @MainActor
    public func dismiss(cancelFutureDisplays: Bool = false)

    Parameters

    cancelFutureDisplays

    A Boolean value that, if true, should cancel any scheduled or future displays related to this scene.

  • An enumeration representing a navigation request.

    See more

    Declaration

    Swift

    public enum NaviagationRequest
  • Exposes pager state and allows to dispatch navigation requests

    Declaration

    Swift

    @MainActor
    public let pager: PagerController