| 123456789101112131415161718192021222324252627282930313233 |
- //
- // SUIExamplesApp.swift
- // SUIExamples
- //
- // Created by Pavel Yurchenko on 17.08.2024.
- //
- import SwiftUI
- @main
- struct SUIExamplesApp: App {
- @StateObject private var router: Router = DI.shared.router
- var body: some Scene {
- WindowGroup {
- NavigationStack(path: $router.path){
- MainBuilder().build(
- with: .init(
- onProducts: {
- router.push(
- .products
- )
- })
- )
- .navigationDestination(
- for: Route.self,
- destination: router.buildDestination
- )
- }
- }
- }
- }
|