Skip to content

Commit

Permalink
chore: minor UX updates in sample host app (#86)
Browse files Browse the repository at this point in the history
* chore: minor UX tweaks

* chore: update sample app result screen title
  • Loading branch information
phantumcode authored Dec 4, 2023
1 parent 9c6ade8 commit eb2e037
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
11 changes: 2 additions & 9 deletions HostApp/HostApp/Views/LivenessResultContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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:")
Expand Down Expand Up @@ -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)
}
}
Expand Down
2 changes: 1 addition & 1 deletion HostApp/HostApp/Views/LivenessResultView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct LivenessResultView<Content: View>: View {
@State var displayingCopiedNotification = false

init(
title: String = "Liveness Check",
title: String = "Liveness Result",
sessionID: String,
onTryAgain: @escaping () -> Void,
@ViewBuilder content: () -> Content
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
Expand Down

0 comments on commit eb2e037

Please sign in to comment.