AppDelegate

@main
class AppDelegate : UIResponder, UIApplicationDelegate

Default class generated by iOS apps. This is where apps and windows lifecycles are maintained.

  • Default function which is not in use but the AppDelegate must support.

    Declaration

    Swift

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]?) -> Bool
  • Default function which is not in use but the AppDelegate must support.

    Declaration

    Swift

    func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration
  • Default function which is not in use but the AppDelegate must support.

    Declaration

    Swift

    func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>)
  • Get the persistent storage CoreData container.

    Lazily loaded as we load it just-in-time.

    Declaration

    Swift

    lazy var persistentContainer: NSPersistentContainer { get set }
  • Saved to the CoreData container. A simple helper function used around the app.

    Declaration

    Swift

    func saveContext()