Remove AnyView hack from ContentView

This commit is contained in:
William Brawner 2021-09-11 06:24:53 -06:00
parent ec16456e77
commit 6b2542fb8a

View file

@ -11,15 +11,12 @@ import SwiftUI
struct ContentView: View {
@ObservedObject var authenticationDataStore: AuthenticationDataStore
@ViewBuilder
var body: some View {
stateContent
}
var stateContent: AnyView {
if showLogin() {
return AnyView(LoginView(authenticationDataStore))
LoginView(authenticationDataStore)
} else {
return AnyView(TabbedBudgetView(authenticationDataStore, dataStoreProvider: dataStoreProvider))
TabbedBudgetView(authenticationDataStore, dataStoreProvider: dataStoreProvider)
}
}