@@ -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
) {
@@ -78,7 +78,7 @@ public struct FaceLivenessDetectorView: View {
78
78
credentialsProvider: AWSCredentialsProvider ? = nil ,
79
79
region: String ,
80
80
disableStartView: Bool = false ,
81
- challengeOptions: ChallengeOptions ,
81
+ challengeOptions: ChallengeOptions = . init ( ) ,
82
82
isPresented: Binding < Bool > ,
83
83
onCompletion: @escaping ( Result < Void , FaceLivenessDetectionError > ) -> Void ,
84
84
captureSession: LivenessCaptureSession
@@ -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
0 commit comments