Skip to content
Snippets Groups Projects
Commit d042833c authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Update UI

parent 119d69ff
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!74Messenger example - clean up
...@@ -79,10 +79,14 @@ public struct ContactView: View { ...@@ -79,10 +79,14 @@ public struct ContactView: View {
Button { Button {
viewStore.send(.importFactsTapped) viewStore.send(.importFactsTapped)
} label: { } label: {
if viewStore.dbContact == nil { HStack {
Text("Save contact") if viewStore.dbContact == nil {
} else { Text("Save contact")
Text("Update contact") } else {
Text("Update contact")
}
Spacer()
Image(systemName: "arrow.down")
} }
} }
} header: { } header: {
......
...@@ -98,19 +98,19 @@ public struct UserSearchView: View { ...@@ -98,19 +98,19 @@ public struct UserSearchView: View {
VStack { VStack {
if result.hasFacts { if result.hasFacts {
if let username = result.username { if let username = result.username {
Text(username) Label(username, systemImage: "person")
} }
if let email = result.email { if let email = result.email {
Text(email) Label(email, systemImage: "envelope")
} }
if let phone = result.phone { if let phone = result.phone {
Text(phone) Label(phone, systemImage: "phone")
} }
} else { } else {
Image(systemName: "questionmark") Label("No facts", systemImage: "questionmark")
.frame(maxWidth: .infinity)
} }
} }
.tint(Color.primary)
Spacer() Spacer()
Image(systemName: "chevron.forward") Image(systemName: "chevron.forward")
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment