From 351ad9562701a0ff983fe8da13930e483792f66c Mon Sep 17 00:00:00 2001 From: Ian Saultz <52051793+atierian@users.noreply.github.com> Date: Mon, 10 Apr 2023 12:23:59 -0400 Subject: [PATCH] update swift customization docs --- .../customization.i18n.swift.mdx | 2 +- .../customization.start-view.swift.mdx | 21 ++++++++++++++++++- .../customization.theming.swift.mdx | 1 - 3 files changed, 21 insertions(+), 3 deletions(-) delete mode 100644 docs/src/pages/[platform]/connected-components/liveness/customization/customization.theming.swift.mdx diff --git a/docs/src/pages/[platform]/connected-components/liveness/customization/customization.i18n.swift.mdx b/docs/src/pages/[platform]/connected-components/liveness/customization/customization.i18n.swift.mdx index daf9dc2a1fc..35526cdfa80 100644 --- a/docs/src/pages/[platform]/connected-components/liveness/customization/customization.i18n.swift.mdx +++ b/docs/src/pages/[platform]/connected-components/liveness/customization/customization.i18n.swift.mdx @@ -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). diff --git a/docs/src/pages/[platform]/connected-components/liveness/customization/customization.start-view.swift.mdx b/docs/src/pages/[platform]/connected-components/liveness/customization/customization.start-view.swift.mdx index ce2b54df1ee..94ffa169fdc 100644 --- a/docs/src/pages/[platform]/connected-components/liveness/customization/customization.start-view.swift.mdx +++ b/docs/src/pages/[platform]/connected-components/liveness/customization/customization.start-view.swift.mdx @@ -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: , + region: , + disableStartView: true, + isPresented: $isPresentingLiveness, + onCompletion: { result in + switch result { + case .success: + // ... + case .failure(let error): + // ... + default: + // ... + } + } +) +``` diff --git a/docs/src/pages/[platform]/connected-components/liveness/customization/customization.theming.swift.mdx b/docs/src/pages/[platform]/connected-components/liveness/customization/customization.theming.swift.mdx deleted file mode 100644 index 119d774c8ac..00000000000 --- a/docs/src/pages/[platform]/connected-components/liveness/customization/customization.theming.swift.mdx +++ /dev/null @@ -1 +0,0 @@ -Todo: Add theming info