Last active
March 22, 2020 19:36
-
-
Save hrvolapeter/8ddeb0f835818ad39e53f6aebb32e7db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| import Resolver | |
| struct ContentView: View { | |
| @ObservedObject var authenticationService: AuthenticationService = Resolver.resolve() | |
| var body: some View { | |
| Group { | |
| if (authenticationService.user == nil) { | |
| LoginView() | |
| } else { | |
| Text("Signed in") | |
| } | |
| } | |
| } | |
| } | |
| struct ContentView_Previews: PreviewProvider { | |
| static var previews: some View { | |
| ContentView() | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment