File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Sources/FaceLiveness/Views/Liveness Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public struct FaceLivenessDetectorView: View {
30
30
credentialsProvider: AWSCredentialsProvider ? = nil ,
31
31
region: String ,
32
32
disableStartView: Bool = false ,
33
- challengeOptions: ChallengeOptions ,
33
+ challengeOptions: ChallengeOptions = . init ( ) ,
34
34
isPresented: Binding < Bool > ,
35
35
onCompletion: @escaping ( Result < Void , FaceLivenessDetectionError > ) -> Void
36
36
) {
@@ -356,7 +356,7 @@ public struct ChallengeOptions {
356
356
let faceMovementChallengeOption : FaceMovementChallengeOption
357
357
let faceMovementAndLightChallengeOption : FaceMovementAndLightChallengeOption
358
358
359
- public init ( faceMovementChallengeOption: FaceMovementChallengeOption ,
359
+ public init ( faceMovementChallengeOption: FaceMovementChallengeOption = . init ( camera : . front ) ,
360
360
faceMovementAndLightChallengeOption: FaceMovementAndLightChallengeOption = . init( ) ) {
361
361
self . faceMovementChallengeOption = faceMovementChallengeOption
362
362
self . faceMovementAndLightChallengeOption = faceMovementAndLightChallengeOption
You can’t perform that action at this time.
0 commit comments