MESSENGER-4518 add voiceover description

This commit is contained in:
JanNiklas Grabowski
2023-04-25 13:27:37 +02:00
parent e851352904
commit 9ac96f2886
5 changed files with 16 additions and 1 deletions

View File

@@ -44,7 +44,7 @@ final class EnterPinCodeViewController: UIViewController {
@IBOutlet private weak var explanatoryLabel: UILabel!
@IBOutlet private weak var forgotPinButton: UIButton!
@IBOutlet private weak var bottomView: UIView!
@IBOutlet private weak var digitButtonReset: UIButton!
// MARK: Private
private var viewModel: EnterPinCodeViewModelType!
@@ -87,6 +87,8 @@ final class EnterPinCodeViewController: UIViewController {
if BWIBuildSettings.shared.showBUMLottieAnimation {
inactiveLogoImageView.isHidden = true
}
// BWI: accessibility description
digitButtonReset.vc_setupAccessibilityTraitsButton(withTitle: BWIL10n.pinProtectionResetButtonAccessibilityLabel, hint: BWIL10n.pinProtectionResetButtonAccessibilityHint, isEnabled: true)
}
override func viewWillAppear(_ animated: Bool) {