From eb2e037c9a59d6c0cd1ad7dbfddbe796346c94bf Mon Sep 17 00:00:00 2001 From: Tuan Pham <103537251+phantumcode@users.noreply.github.com> Date: Mon, 4 Dec 2023 15:22:41 -0600 Subject: [PATCH] chore: minor UX updates in sample host app (#86) * chore: minor UX tweaks * chore: update sample app result screen title --- HostApp/HostApp/Views/LivenessResultContentView.swift | 11 ++--------- HostApp/HostApp/Views/LivenessResultView.swift | 2 +- .../Resources/Base.lproj/Localizable.strings | 2 +- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/HostApp/HostApp/Views/LivenessResultContentView.swift b/HostApp/HostApp/Views/LivenessResultContentView.swift index 8ebda4ff..de2ecff7 100644 --- a/HostApp/HostApp/Views/LivenessResultContentView.swift +++ b/HostApp/HostApp/Views/LivenessResultContentView.swift @@ -17,12 +17,7 @@ struct LivenessResultContentView: View { Text("Result:") Text(result.text) .fontWeight(.semibold) - .foregroundColor(result.valueTextColor) - .padding(6) - .background(result.valueBackgroundColor) - .cornerRadius(8) } - .padding(.bottom, 12) HStack { Text("Liveness confidence score:") @@ -86,13 +81,11 @@ struct LivenessResultContentView: View { ) { Text("Tips to pass the video check:") .fontWeight(.semibold) - step(number: 1, text: "Maximize your screen's brightness.") - .accessibilityElement(children: .combine) - step(number: 2, text: "Avoid very bright lighting conditions, such as direct sunlight.") + step(number: 1, text: "Avoid very bright lighting conditions, such as direct sunlight.") .accessibilityElement(children: .combine) - step(number: 3, text: "Remove sunglasses, mask, hat, or anything blocking your face.") + step(number: 2, text: "Remove sunglasses, mask, hat, or anything blocking your face.") .accessibilityElement(children: .combine) } } diff --git a/HostApp/HostApp/Views/LivenessResultView.swift b/HostApp/HostApp/Views/LivenessResultView.swift index 7f75844d..23ba99fe 100644 --- a/HostApp/HostApp/Views/LivenessResultView.swift +++ b/HostApp/HostApp/Views/LivenessResultView.swift @@ -15,7 +15,7 @@ struct LivenessResultView: View { @State var displayingCopiedNotification = false init( - title: String = "Liveness Check", + title: String = "Liveness Result", sessionID: String, onTryAgain: @escaping () -> Void, @ViewBuilder content: () -> Content diff --git a/Sources/FaceLiveness/Resources/Base.lproj/Localizable.strings b/Sources/FaceLiveness/Resources/Base.lproj/Localizable.strings index 30c0de41..afe3aff2 100644 --- a/Sources/FaceLiveness/Resources/Base.lproj/Localizable.strings +++ b/Sources/FaceLiveness/Resources/Base.lproj/Localizable.strings @@ -7,7 +7,7 @@ "amplify_ui_liveness_get_ready_page_title" = "Liveness Check"; "amplify_ui_liveness_get_ready_photosensitivity_title" = "Photosensitivity Warning"; -"amplify_ui_liveness_get_ready_photosensitivity_description" = "This check displays colored lights. Use caution if you are photosensitive."; +"amplify_ui_liveness_get_ready_photosensitivity_description" = "This check flashes different colors. Use caution if you are photosensitive."; "amplify_ui_liveness_get_ready_photosensitivity_icon_a11y" = "Photosensitivity Information"; "amplify_ui_liveness_get_ready_photosensitivity_dialog_title" = "Photosensitivity warning"; "amplify_ui_liveness_get_ready_photosensitivity_dialog_description" = "Some people may experience epileptic seizures when exposed to colored lights. Use caution if you, or anyone in your family, have an epileptic condition.";