diff --git a/Sources/FaceLiveness/Views/Liveness/FaceLivenessDetectionViewModel.swift b/Sources/FaceLiveness/Views/Liveness/FaceLivenessDetectionViewModel.swift index e83c7c22..ac5559bb 100644 --- a/Sources/FaceLiveness/Views/Liveness/FaceLivenessDetectionViewModel.swift +++ b/Sources/FaceLiveness/Views/Liveness/FaceLivenessDetectionViewModel.swift @@ -203,7 +203,14 @@ class FaceLivenessDetectionViewModel: ObservableObject { try livenessService?.initializeLivenessStream( withSessionID: sessionID, userAgent: UserAgentValues.standard().userAgentString, + // both challenges enabled, rekognition will decide challenges: FaceLivenessSession.supportedChallenges, + + // light challenge enabled + //challenges: [.init(version: "2.0.0", type: .faceMovementAndLightChallenge)], + + // no light challenge enabled + //challenges: [.init(version: "1.0.0", type: .faceMovementChallenge)], options: .init( attemptCount: Self.attemptCount, preCheckViewEnabled: isPreviewScreenEnabled)