Skip to content

Commit

Permalink
update swift customization docs
Browse files Browse the repository at this point in the history
  • Loading branch information
atierian committed Apr 10, 2023
1 parent 4f45d11 commit 351ad95
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
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).
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:
// ...
}
}
)
```

This file was deleted.

0 comments on commit 351ad95

Please sign in to comment.