Skip to content

Commit c35656c

Browse files
ipedrothisisabhashaws-amplify-ops
authored
Update release 1.4.1 (#2)
* chore: kickoff release * chore: release 1.4.1 [skip ci] * chore: finalize release 1.4.1 [skip ci] --------- Co-authored-by: Abhash Kumar Singh <[email protected]> Co-authored-by: aws-amplify-ops <[email protected]>
1 parent 9b0f9de commit c35656c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Changelog
22

3+
## 1.4.1 (2025-07-01)
4+
35
## 1.4.0 (2025-06-30)
46

57
### Features

Sources/FaceLiveness/Utilities/UserAgent.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import InternalAmplifyCredentials
1010

1111
struct UserAgentValues {
1212

13-
static let libVersion = "1.4.0"
13+
static let libVersion = "1.4.1"
1414
static let libName = "amplify-ui-swift-face-liveness"
1515

1616
let amplifyVersion: String

Sources/FaceLiveness/Views/Liveness/FaceLivenessDetectionView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public struct FaceLivenessDetectorView: View {
3030
credentialsProvider: AWSCredentialsProvider? = nil,
3131
region: String,
3232
disableStartView: Bool = false,
33-
challengeOptions: ChallengeOptions,
33+
challengeOptions: ChallengeOptions = .init(),
3434
isPresented: Binding<Bool>,
3535
onCompletion: @escaping (Result<Void, FaceLivenessDetectionError>) -> Void
3636
) {
@@ -78,7 +78,7 @@ public struct FaceLivenessDetectorView: View {
7878
credentialsProvider: AWSCredentialsProvider? = nil,
7979
region: String,
8080
disableStartView: Bool = false,
81-
challengeOptions: ChallengeOptions,
81+
challengeOptions: ChallengeOptions = .init(),
8282
isPresented: Binding<Bool>,
8383
onCompletion: @escaping (Result<Void, FaceLivenessDetectionError>) -> Void,
8484
captureSession: LivenessCaptureSession
@@ -356,7 +356,7 @@ public struct ChallengeOptions {
356356
let faceMovementChallengeOption: FaceMovementChallengeOption
357357
let faceMovementAndLightChallengeOption: FaceMovementAndLightChallengeOption
358358

359-
public init(faceMovementChallengeOption: FaceMovementChallengeOption,
359+
public init(faceMovementChallengeOption: FaceMovementChallengeOption = .init(camera: .front),
360360
faceMovementAndLightChallengeOption: FaceMovementAndLightChallengeOption = .init()) {
361361
self.faceMovementChallengeOption = faceMovementChallengeOption
362362
self.faceMovementAndLightChallengeOption = faceMovementAndLightChallengeOption

0 commit comments

Comments
 (0)