๐Ÿ…ฟ๏ธApp

SwiftUI โŸฉ app โŸฉ App (protocol)

A protocol that represents the structure and behavior of an app.

@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