SceneManager

public class SceneManager

A singleton class which manages scenes in Multi-window scenario.

  • Static constant property that provides access to the SceneManager singleton class.

    Declaration

    Swift

    public static let shared: SceneManager
  • Returns a boolean value which indicates whether the multi-window support is enabled by the application.

    Declaration

    Swift

    public let isMultiWindowSupportEnabled: Bool
  • Method to save the persistentIdentifier of UISceneSession associated with the current UIScene.

    Declaration

    Swift

    public func setCurrentSceneSessionID(id: String)
  • Method to save the persistentIdentifier of UISceneSession associated with the onboarding UIScene.

    Declaration

    Swift

    public func setOnboardingSceneSessionID(id: String)
  • Returns the persistentIdentifier of UISceneSession associated with the current UIScene .

    Declaration

    Swift

    public func getCurrentSceneSessionID() -> String?
  • Returns the persistentIdentifier of UISceneSession associated with the onboarding UIScene .

    Declaration

    Swift

    public func getOnboardingSceneSessionID() -> String?
  • Returns the UIScene instance given the persistentIdentifier of associated UISceneSession

    Declaration

    Swift

    public static func getScene(sessionID: String) -> UIScene?

    Parameters

    sessionID

    persistentIdentifier of UISceneSession

    Return Value

    UIScene associted with given persistentIdentifier

  • Returns the UIScene instance associated with the current onboarding flow.

    Declaration

    Swift

    public func getCurrentOnboardingScene() -> UIScene?
  • Returns the UIWindow instance associated with the current onboarding flow.

    Declaration

    Swift

    public func getCurrentOnboardingWindow() -> UIWindow?