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:
parent
c1f790edca
commit
3a7efb2227
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user