A

Admin • 832.27K Points
Coach

Q. What does `@main` do in Swift?

  • (A) Specifies the main view in SwiftUI
  • (B) Specifies the main function in a program
  • (C) Defines a main module
  • (D) Marks a test case
  • Correct Answer - Option(B)
  • Views: 22
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin

`@main` indicates the entry point of a Swift program.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.