Skip to content

Glossary: SwiftUI

@main

Also written: main

An attribute that marks where the app starts. Every app has exactly one, on the struct that conforms to App.

Where the book teaches it

Related terms

Appattribute