File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Sources/FaceLiveness/Views/Liveness Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,7 @@ struct ExampleLivenessView: View {
27
27
FaceLivenessDetectorView (
28
28
sessionID: viewModel. sessionID,
29
29
region: " us-east-1 " ,
30
- challengeOptions: . init( faceMovementChallengeOption: FaceMovementChallengeOption ( camera: camera) ,
31
- faceMovementAndLightChallengeOption: FaceMovementAndLightChallengeOption ( ) ) ,
30
+ challengeOptions: . init( faceMovementChallengeOption: FaceMovementChallengeOption ( camera: camera) ) ,
32
31
isPresented: Binding (
33
32
get: { viewModel. presentationState == . liveness( camera) } ,
34
33
set: { _ in }
Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ public struct ChallengeOptions {
342
342
let faceMovementAndLightChallengeOption : FaceMovementAndLightChallengeOption
343
343
344
344
public init ( faceMovementChallengeOption: FaceMovementChallengeOption ,
345
- faceMovementAndLightChallengeOption: FaceMovementAndLightChallengeOption ) {
345
+ faceMovementAndLightChallengeOption: FaceMovementAndLightChallengeOption = . init ( ) ) {
346
346
self . faceMovementChallengeOption = faceMovementChallengeOption
347
347
self . faceMovementAndLightChallengeOption = faceMovementAndLightChallengeOption
348
348
}
You can’t perform that action at this time.
0 commit comments