App entry point
In a SwiftUI app, what does @main mean?
In a SwiftUI app, what does @main mean?
@main marks the type where the compiler should place the program's entry point (the main function). The App protocol provides a default static main(), so the app starts from the App type that carries this attribute.
App lifecycle and systemShort answerIntro
In a scene-based iOS app, where would you put work like registering the push token, and…
#scene #appdelegate
App lifecycle and systemShort answerIntro
What kind of object is AppDelegate, and which events does it handle?
#appdelegate
App lifecycle and systemMultiple choiceBasics
In an iOS 13+ scene-based UIKit app (one that uses SceneDelegate), which callback runs…
#appdelegate
App lifecycle and systemMultiple choiceIntro
Which of these does the AppDelegate marked @main (or the UIApplicationMain call) do at…
#main