November 04, 2020

Xcode에서 iOS 프로젝트를 만들면 자동으로 AppDelegate.swift와 SceneDelegate.swift 파일이 생성됨
얘네가 앱의 Lifecycle을 관리하는 파일들
iOS12까지는 AppDelegate.swift 만 있었음! 그럼 Scene은 뭐야?
iOS13부터 특히 iPadOS에서 여러 window의 사용이 가능해짐!!
하나의 window가 scene, SceneDelegate.swift 파일은 Scene간 이동 시 nofity를 받음

sceneWillResignActive() : 앱 사용 중 전화가 오는 등 interruption이 발생했을 때 > 음악을 중단한다sceneDidEnterBackground() : 앱이 백그라운드 상태로 전환되었을 때 > 유저 데이터를 저장하기 참 좋은 시점!!!Reference, Photo Credit :
Udemy iOS 13 & Swift 5 - The Complete iOS App Development Bootcamp