๐Ÿ“ฆWindowGroup

SwiftUI โŸฉ app โŸฉ windows โŸฉ WindowGroup

A scene that presents a group of identically structured windows. Use a WindowGroup as a container for a view hierarchy that your app presents.

@main
struct MailApp: App {
    var body: some Scene {
    
        // โญ๏ธ WindowGroup
        WindowGroup {
            // โญ๏ธ at least one view is needed inside `WindowGroup`,
            //    which acts as a container for your app's view hierarchy.
            MailViewer() 
        }
        
    }
}

Last updated