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
ofUISceneSession
associated with the currentUIScene
.Declaration
Swift
public func setCurrentSceneSessionID(id: String)
-
Method to save the
persistentIdentifier
ofUISceneSession
associated with the onboardingUIScene
.Declaration
Swift
public func setOnboardingSceneSessionID(id: String)
-
Returns the
persistentIdentifier
ofUISceneSession
associated with the currentUIScene
.Declaration
Swift
public func getCurrentSceneSessionID() -> String?
-
Returns the
persistentIdentifier
ofUISceneSession
associated with the onboardingUIScene
.Declaration
Swift
public func getOnboardingSceneSessionID() -> String?
-
Returns the
UIScene
instance given thepersistentIdentifier
of associatedUISceneSession
Declaration
Swift
public static func getScene(sessionID: String) -> UIScene?
Parameters
sessionID
persistentIdentifier
ofUISceneSession
Return Value
UIScene
associted with givenpersistentIdentifier
-
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?