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
persistentIdentifierofUISceneSessionassociated with the currentUIScene.Declaration
Swift
public func setCurrentSceneSessionID(id: String) -
Method to save the
persistentIdentifierofUISceneSessionassociated with the onboardingUIScene.Declaration
Swift
public func setOnboardingSceneSessionID(id: String) -
Returns the
persistentIdentifierofUISceneSessionassociated with the currentUIScene.Declaration
Swift
public func getCurrentSceneSessionID() -> String? -
Returns the
persistentIdentifierofUISceneSessionassociated with the onboardingUIScene.Declaration
Swift
public func getOnboardingSceneSessionID() -> String? -
Returns the
UISceneinstance given thepersistentIdentifierof associatedUISceneSessionDeclaration
Swift
public static func getScene(sessionID: String) -> UIScene?Parameters
sessionIDpersistentIdentifierofUISceneSessionReturn Value
UISceneassocited with givenpersistentIdentifier -
Returns the
UISceneinstance associated with the current onboarding flow.Declaration
Swift
public func getCurrentOnboardingScene() -> UIScene? -
Returns the
UIWindowinstance associated with the current onboarding flow.Declaration
Swift
public func getCurrentOnboardingWindow() -> UIWindow?