22 lines
569 B
Swift
22 lines
569 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: show the BlindBox home (all)
|
|
BlindBoxView(mediaType: .all)
|
|
.navigationDestination(for: AppRoute.self) { route in
|
|
route.view
|
|
}
|
|
}
|
|
.environmentObject(router)
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
ContentView()
|
|
}
|