-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...tform]/connected-components/liveness/customization/customization.i18n.swift.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Todo: Add internationalization info | ||
The text in the FaceLivenessDetectorView component is defined as string resources in the component's [Localizable.strings file](https://github.com/aws-amplify/amplify-ui-swift-liveness/blob/main/Sources/FaceLiveness/Resources/Base.lproj/Localizable.strings). These values can be translated/overwritten by following the instructions [here](https://developer.apple.com/documentation/xcode/localization). |
21 changes: 20 additions & 1 deletion
21
.../connected-components/liveness/customization/customization.start-view.swift.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,20 @@ | ||
Todo: Add description and example code for disabling the start view | ||
The FaceLivenessDetectorView contains an initial (start) view with instructions and information about the liveness check for the end user. By default, the start view is shown before the liveness check. The start view can be disabled, allowing you to provide your own start view before the FaceLivenessDetectorView component is displayed in the app: | ||
|
||
```swift | ||
FaceLivenessDetectorView( | ||
sessionID: <session ID>, | ||
region: <region>, | ||
disableStartView: true, | ||
isPresented: $isPresentingLiveness, | ||
onCompletion: { result in | ||
switch result { | ||
case .success: | ||
// ... | ||
case .failure(let error): | ||
// ... | ||
default: | ||
// ... | ||
} | ||
} | ||
) | ||
``` |
1 change: 0 additions & 1 deletion
1
...rm]/connected-components/liveness/customization/customization.theming.swift.mdx
This file was deleted.
Oops, something went wrong.