Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
struct ContentView: View {
@State var name : String = ""
@EnvironmentObject var authorizationStatus: UserSettings
var body: some View {
VStack{
if self.name.isEmpty{
SignInWithAppleView(name: $name)
.frame(width: 200, height: 50)
}
else{
Text("Welcome\n\(self.name)")
.font(.headline)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment