Skip to content

Commit

Permalink
Add haptic feedback on invalid passcode
Browse files Browse the repository at this point in the history
  • Loading branch information
ealymbaev committed Sep 27, 2023
1 parent 0bb4d25 commit 688021a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Combine
import HsExtensions
import LocalAuthentication
import UIKit

class BaseUnlockViewModel: ObservableObject {
let passcodeLength = 6
Expand Down Expand Up @@ -88,6 +89,7 @@ class BaseUnlockViewModel: ObservableObject {
} else {
passcode = ""
lockoutManager.didFailUnlock()
UINotificationFeedbackGenerator().notificationOccurred(.error)
}
}

Expand Down

0 comments on commit 688021a

Please sign in to comment.