Slide 17
Slide 17 text
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:
[UIApplication.LaunchOptionsKey: Any]?) -> Bool {
NSLog("AppDelegate: First launch")
return true
}
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession:
UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
NSLog("AppDelegate: New Scene created")
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set)
{
NSLog("AppDelegate: Scene discarded")
}
}
when new scenes are created.
Returns configuration object
that hold information which
storyboard to use (info.plist).
You can decide which
configuration to use.
When the user removes
a scene from the app
switcher. If your app is
not running, UIKit calls
this method the next
time your app launches.