wake-ios/wake/ContentView.swift

22 lines
576 B
Swift

import SwiftUI
/// App entry content. Keeps only routing/navigation and delegates feature UIs to their own files.
struct ContentView: View {
@StateObject private var router = Router.shared
var body: some View {
NavigationStack(path: $router.path) {
// Home entry: gate decides destination by querying blind boxes first
GateView()
.navigationDestination(for: AppRoute.self) { route in
route.view
}
}
.environmentObject(router)
}
}
#Preview {
ContentView()
}