Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public struct FaceLivenessDetectorView: View {
credentialsProvider: AWSCredentialsProvider? = nil,
region: String,
disableStartView: Bool = false,
challengeOptions: ChallengeOptions,
challengeOptions: ChallengeOptions = .init(),
isPresented: Binding<Bool>,
onCompletion: @escaping (Result<Void, FaceLivenessDetectionError>) -> Void
) {
Expand Down Expand Up @@ -78,7 +78,7 @@ public struct FaceLivenessDetectorView: View {
credentialsProvider: AWSCredentialsProvider? = nil,
region: String,
disableStartView: Bool = false,
challengeOptions: ChallengeOptions,
challengeOptions: ChallengeOptions = .init(),
isPresented: Binding<Bool>,
onCompletion: @escaping (Result<Void, FaceLivenessDetectionError>) -> Void,
captureSession: LivenessCaptureSession
Expand Down Expand Up @@ -356,7 +356,7 @@ public struct ChallengeOptions {
let faceMovementChallengeOption: FaceMovementChallengeOption
let faceMovementAndLightChallengeOption: FaceMovementAndLightChallengeOption

public init(faceMovementChallengeOption: FaceMovementChallengeOption,
public init(faceMovementChallengeOption: FaceMovementChallengeOption = .init(camera: .front),
faceMovementAndLightChallengeOption: FaceMovementAndLightChallengeOption = .init()) {
self.faceMovementChallengeOption = faceMovementChallengeOption
self.faceMovementAndLightChallengeOption = faceMovementAndLightChallengeOption
Expand Down
Loading