Improved how the "user" and "account" properties are assigned and cleared in the ContentView view of the BeReal app target.

This commit is contained in:
Javier Cicchelli 2022-12-12 03:21:35 +01:00
parent c1f790edca
commit 3a7efb2227

View File

@ -46,11 +46,12 @@ struct ContentView: View {
switch sheet { switch sheet {
case .login: case .login:
LoginView { LoginView {
account = $0
user = $1 user = $1
account = $0
} }
case .profile: case .profile:
ProfileView { ProfileView(user: user) {
user = nil
account = nil account = nil
} }
} }