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 {
Button {
viewStore.send(.importFactsTapped)
} label: {
if viewStore.dbContact == nil {
Text("Save contact")
} else {
Text("Update contact")
HStack {
if viewStore.dbContact == nil {
Text("Save contact")
} else {
Text("Update contact")
}
Spacer()
Image(systemName: "arrow.down")
}
}
} header: {
......
......@@ -98,19 +98,19 @@ public struct UserSearchView: View {
VStack {
if result.hasFacts {
if let username = result.username {
Text(username)
Label(username, systemImage: "person")
}
if let email = result.email {
Text(email)
Label(email, systemImage: "envelope")
}
if let phone = result.phone {
Text(phone)
Label(phone, systemImage: "phone")
}
} else {
Image(systemName: "questionmark")
.frame(maxWidth: .infinity)
Label("No facts", systemImage: "questionmark")
}
}
.tint(Color.primary)
Spacer()
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