🅿️App

SwiftUIapp ⟩ App (protocol)

@main
struct MyApp: App {
    var body: some Scene {
        // ⭐️ app definition
        WindowGroup {
            // ⭐️ at least one view is needed inside `WindowGroup`,
            //    which acts as a container for your app's view hierarchy.
            ContentView()
        }
    }
}

Last updated

Was this helpful?