Remove AnyView hack from ContentView
This commit is contained in:
parent
ec16456e77
commit
6b2542fb8a
1 changed files with 3 additions and 6 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue