|
|
@@ -11,18 +11,18 @@ import SwiftUI
|
|
|
@main
|
|
|
struct SUIExamplesApp: App {
|
|
|
|
|
|
- private static let coordinator = ApplicationCoordinator()
|
|
|
+ static let applicationCoordinator = ApplicationCoordinator()
|
|
|
|
|
|
- private let applicationCoordinator = coordinator
|
|
|
- @StateObject private var router: Router = coordinator.currentRouter
|
|
|
+ private let coordinator = applicationCoordinator
|
|
|
+ @StateObject private var router: Router = applicationCoordinator.currentRouter
|
|
|
|
|
|
var body: some Scene {
|
|
|
WindowGroup {
|
|
|
NavigationStack(path: $router.path) {
|
|
|
- applicationCoordinator.run()
|
|
|
+ coordinator.run()
|
|
|
.navigationDestination(
|
|
|
for: Route.self,
|
|
|
- destination: applicationCoordinator.buildDestination
|
|
|
+ destination: coordinator.buildDestination
|
|
|
)
|
|
|
}
|
|
|
}
|