RVS_AmbiaMara_AppSceneDelegate

@UIApplicationMain
class RVS_AmbiaMara_AppSceneDelegate : UIResponder
extension RVS_AmbiaMara_AppSceneDelegate: UIApplicationDelegate
extension RVS_AmbiaMara_AppSceneDelegate: UIWindowSceneDelegate

The main app/scene delegate (I combine them).

  • The required window property.

    Declaration

    Swift

    var window: UIWindow?

Computed Properties

  • Easy access to our navigation controller.

    Declaration

    Swift

    var navigationController: UINavigationController? { get }

Instance Methods

  • This closes any open popovers, and also stops any alarms.

    Declaration

    Swift

    func cleanPopoverAndStopAlarm()

UIApplicationDelegate Conformance

  • Declaration

    Swift

    func application(_: UIApplication, didFinishLaunchingWithOptions: [UIApplication.LaunchOptionsKey : Any]?) -> Bool

    Parameters

    didFinishLaunchingWithOptions

    The launch options (ignored).

  • Declaration

    Swift

    func application(_: UIApplication, configurationForConnecting inConnectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration

    Parameters

    configurationForConnecting

    The connection configuration.

    options

    Connection options (ignored).

UIWindowSceneDelegate Conformance

  • Called when the app is resigning active

    Declaration

    Swift

    func sceneWillResignActive(_: UIScene)
  • Called when the app goes into the background.

    Declaration

    Swift

    func sceneDidEnterBackground(_: UIScene)
  • Called when the app is about to become active. I use this to make sure the buttons and toolbar react promply to changes in things like increased contrast.

    Declaration

    Swift

    func sceneDidBecomeActive(_: UIScene)