| Code | What It Does | How It Does It |
| ▶ IMPORTS | ||
| import SwiftUI | Framework imports | Imports SwiftUI. |
| @main struct SpotsApp: App { var body: some Scene { WindowGroup { WatchRootView() } } } | Code block | See source code for full implementation. |
| /// Root view that owns the store lifetime via @StateObject, /// then injects it as an environment object for all child views. struct WatchRootView: View { @StateObject private var store = WatchEntryStore() var body: some View { NavigationStack { WatchHomeView() } .environmentObject(store) } } | Documentation comment | Describes the following declaration. |