Introduction
The main entry point tells the program where to start running. The @main attribute marks the starting place in Swift.
When you want to define where your Swift program begins.
When creating a command-line tool or app without using storyboard.
When you want to customize the program's startup behavior.
When you want to use a custom type as the program's entry point.