Use App feature view for app scene
This commit is contained in:
parent
9f7c5c158a
commit
c035bed146
|
@ -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()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue