| 123456789101112131415161718192021222324252627282930 |
- //
- // SUIExamplesApp.swift
- // SUIExamples
- //
- // Created by Pavel Yurchenko on 17.08.2024.
- //
- import CoordinatorSUI
- import SwiftUI
- @main
- struct SUIExamplesApp: App {
- static let applicationCoordinator = ApplicationCoordinator()
- private let coordinator = applicationCoordinator
- @StateObject private var router: Router = applicationCoordinator.currentRouter
- var body: some Scene {
- WindowGroup {
- NavigationStack(path: $router.path) {
- coordinator.run()
- .navigationDestination(
- for: Route.self,
- destination: coordinator.buildDestination
- )
- }
- }
- }
- }
|