Skip to content

Commit 7dff2b4

Browse files
committed
fix: Returning .userCancelled when the app goes to the background during a Liveness check.
1 parent 7a40c09 commit 7dff2b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FaceLiveness/Views/Liveness/FaceLivenessDetectionView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public struct FaceLivenessDetectorView: View {
199199

200200
func mapError(_ livenessError: LivenessStateMachine.LivenessError) -> FaceLivenessDetectionError {
201201
switch livenessError {
202-
case .userCancelled:
202+
case .userCancelled, .viewResignation:
203203
return .userCancelled
204204
case .timedOut:
205205
return .faceInOvalMatchExceededTimeLimitError

0 commit comments

Comments
 (0)