Skip to content

Commit 0b56e1f

Browse files
authored
fix: Returning .userCancelled when the app goes to the background during a Liveness check. (#167)
1 parent 7a40c09 commit 0b56e1f

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)