๐ ฟ๏ธApp
SwiftUI โฉ app โฉ 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()
}
}
}SwiftUI โฉ App organization โฉ App
Last updated
Was this helpful?