From c035bed1468e926ef69585432d09f3b8f66f249e Mon Sep 17 00:00:00 2001 From: Daniel Haight Date: Tue, 14 Dec 2021 01:23:50 +0000 Subject: [PATCH] Use App feature view for app scene --- secant/SecantApp.swift | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/secant/SecantApp.swift b/secant/SecantApp.swift index 2feab28..0313c28 100644 --- a/secant/SecantApp.swift +++ b/secant/SecantApp.swift @@ -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() + ) + } +}