Add Forgot PIN button to AppLockSetupPINScreen. (#2833)
This commit is contained in:
@@ -43,6 +43,13 @@ struct AppLockSetupPINScreen: View {
|
||||
PINTextField(pinCode: $context.pinCode,
|
||||
isSecure: true)
|
||||
.focused($textFieldFocus)
|
||||
|
||||
if context.viewState.mode == .unlock {
|
||||
Button(L10n.screenAppLockForgotPin) {
|
||||
context.send(viewAction: .forgotPIN)
|
||||
}
|
||||
.buttonStyle(.compound(.plain))
|
||||
}
|
||||
}
|
||||
.padding(.horizontal, 16)
|
||||
.padding(.top, UIConstants.iconTopPaddingToNavigationBar)
|
||||
|
||||
Reference in New Issue
Block a user