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 {
case .login:
LoginView {
account = $0
user = $1
account = $0
}
case .profile:
ProfileView {
ProfileView(user: user) {
user = nil
account = nil
}
}