Skip to content

Commit eb2e037

Browse files
authored
chore: minor UX updates in sample host app (#86)
* chore: minor UX tweaks * chore: update sample app result screen title
1 parent 9c6ade8 commit eb2e037

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

HostApp/HostApp/Views/LivenessResultContentView.swift

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ struct LivenessResultContentView: View {
1717
Text("Result:")
1818
Text(result.text)
1919
.fontWeight(.semibold)
20-
.foregroundColor(result.valueTextColor)
21-
.padding(6)
22-
.background(result.valueBackgroundColor)
23-
.cornerRadius(8)
2420
}
25-
.padding(.bottom, 12)
2621

2722
HStack {
2823
Text("Liveness confidence score:")
@@ -86,13 +81,11 @@ struct LivenessResultContentView: View {
8681
) {
8782
Text("Tips to pass the video check:")
8883
.fontWeight(.semibold)
89-
step(number: 1, text: "Maximize your screen's brightness.")
90-
.accessibilityElement(children: .combine)
9184

92-
step(number: 2, text: "Avoid very bright lighting conditions, such as direct sunlight.")
85+
step(number: 1, text: "Avoid very bright lighting conditions, such as direct sunlight.")
9386
.accessibilityElement(children: .combine)
9487

95-
step(number: 3, text: "Remove sunglasses, mask, hat, or anything blocking your face.")
88+
step(number: 2, text: "Remove sunglasses, mask, hat, or anything blocking your face.")
9689
.accessibilityElement(children: .combine)
9790
}
9891
}

HostApp/HostApp/Views/LivenessResultView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ struct LivenessResultView<Content: View>: View {
1515
@State var displayingCopiedNotification = false
1616

1717
init(
18-
title: String = "Liveness Check",
18+
title: String = "Liveness Result",
1919
sessionID: String,
2020
onTryAgain: @escaping () -> Void,
2121
@ViewBuilder content: () -> Content

Sources/FaceLiveness/Resources/Base.lproj/Localizable.strings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
"amplify_ui_liveness_get_ready_page_title" = "Liveness Check";
99
"amplify_ui_liveness_get_ready_photosensitivity_title" = "Photosensitivity Warning";
10-
"amplify_ui_liveness_get_ready_photosensitivity_description" = "This check displays colored lights. Use caution if you are photosensitive.";
10+
"amplify_ui_liveness_get_ready_photosensitivity_description" = "This check flashes different colors. Use caution if you are photosensitive.";
1111
"amplify_ui_liveness_get_ready_photosensitivity_icon_a11y" = "Photosensitivity Information";
1212
"amplify_ui_liveness_get_ready_photosensitivity_dialog_title" = "Photosensitivity warning";
1313
"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.";

0 commit comments

Comments
 (0)