Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.2 KB

File metadata and controls

41 lines (28 loc) · 1.2 KB

The App Life Cycle

Scene based life-cycle events

AppStatesDiagram

App based life-cycle

AppStatesDiagram

  1. App Launched
  2. App Visible
  3. App Recedes into Background
  4. Resources Reclaimed
Basic steps an app goes through
  1. application(_:didFinishLaunchingWithOptions:)
  2. scene(_:willConnectTo:oprions:)
  3. viewDidLoad
  4. viewWillAppear
  5. sceneWillEnterForeground(_:)
  6. sceneDidBecomeActive(_:)
  7. viewDidAppear
When user switches to another app
  1. sceneWillResignActive(_:)
  2. sceneDidEnterBackground(_:)
When user switches back to the app
  1. sceneDidBecomeActive(_:)
  2. sceneWillResignActive(_:)
When user closes the app
  1. sceneDidDisconnect(_:)
  2. application(_:didDiscardSceneSessions:)

Official Documentation