mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Debounce PIN entry to show the last digit before submitting. (#2017)
This commit is contained in:
@@ -49,10 +49,6 @@ struct AppLockScreen: View {
|
||||
.accessibilityValue(L10n.a11yDigitsEntered(context.viewState.numberOfDigitsEntered))
|
||||
|
||||
AppLockScreenPINKeypad(pinCode: $context.pinCode)
|
||||
.onChange(of: context.pinCode) { newValue in
|
||||
guard newValue.count == 4 else { return }
|
||||
context.send(viewAction: .submitPINCode)
|
||||
}
|
||||
}
|
||||
} bottomContent: {
|
||||
Button(L10n.screenAppLockForgotPin) {
|
||||
|
||||
Reference in New Issue
Block a user