Use App feature view for app scene

This commit is contained in:
Daniel Haight 2021-12-14 01:23:50 +00:00
parent 9f7c5c158a
commit c035bed146
1 changed files with 13 additions and 5 deletions

View File

@ -9,13 +9,21 @@ import SwiftUI
@main
struct SecantApp: App {
var homeStore: HomeStore = .placeholder
var appStore: AppStore = .placeholder
var body: some Scene {
WindowGroup {
NavigationView {
HomeView(store: homeStore)
}
.navigationViewStyle(StackNavigationViewStyle())
AppView(store: appStore)
}
}
}
extension AppStore {
static var placeholder: AppStore {
AppStore(
initialState: .placeholder,
reducer: .default,
environment: .init()
)
}
}