Use App feature view for app scene
This commit is contained in:
parent
9f7c5c158a
commit
c035bed146
|
@ -9,13 +9,21 @@ import SwiftUI
|
||||||
|
|
||||||
@main
|
@main
|
||||||
struct SecantApp: App {
|
struct SecantApp: App {
|
||||||
var homeStore: HomeStore = .placeholder
|
var appStore: AppStore = .placeholder
|
||||||
|
|
||||||
var body: some Scene {
|
var body: some Scene {
|
||||||
WindowGroup {
|
WindowGroup {
|
||||||
NavigationView {
|
AppView(store: appStore)
|
||||||
HomeView(store: homeStore)
|
|
||||||
}
|
|
||||||
.navigationViewStyle(StackNavigationViewStyle())
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extension AppStore {
|
||||||
|
static var placeholder: AppStore {
|
||||||
|
AppStore(
|
||||||
|
initialState: .placeholder,
|
||||||
|
reducer: .default,
|
||||||
|
environment: .init()
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue