0

Hi I'm a learner of Swift. I'm confused about the WindowGroup using in the following syntax. What does it do when we write a class name followed by curly brackets like the WindowGroup in following codes?

@main
struct MemorizeApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
        }
    }
}
eyllanesc
  • 235,170
  • 19
  • 170
  • 241
Aaron MA
  • 9
  • 1

0 Answers0