From d042833cb69824b9be91b3fd3e6c9081749ac888 Mon Sep 17 00:00:00 2001 From: Dariusz Rybicki <dariusz@elixxir.io> Date: Thu, 8 Sep 2022 12:39:21 +0200 Subject: [PATCH] Update UI --- .../Sources/ContactFeature/ContactView.swift | 12 ++++++++---- .../Sources/UserSearchFeature/UserSearchView.swift | 10 +++++----- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/Examples/xx-messenger/Sources/ContactFeature/ContactView.swift b/Examples/xx-messenger/Sources/ContactFeature/ContactView.swift index a35e2074..98691693 100644 --- a/Examples/xx-messenger/Sources/ContactFeature/ContactView.swift +++ b/Examples/xx-messenger/Sources/ContactFeature/ContactView.swift @@ -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: { diff --git a/Examples/xx-messenger/Sources/UserSearchFeature/UserSearchView.swift b/Examples/xx-messenger/Sources/UserSearchFeature/UserSearchView.swift index 9f76ed0a..c6944119 100644 --- a/Examples/xx-messenger/Sources/UserSearchFeature/UserSearchView.swift +++ b/Examples/xx-messenger/Sources/UserSearchFeature/UserSearchView.swift @@ -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") } -- GitLab