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
@@ -328,6 +328,7 @@
</view>
<connections>
<outlet property="bottomView" destination="a0M-Zw-56s" id="nlL-WO-RWV"/>
<outlet property="digitButtonReset" destination="yUt-tN-2gL" id="cRd-ey-eJZ"/>
<outlet property="digitsStackView" destination="5Ek-SS-9WZ" id="1TV-zd-a0a"/>
<outlet property="explanatoryLabel" destination="vP5-71-7ne" id="Skx-tQ-sV1"/>
<outlet property="forgotPinButton" destination="TMg-AX-OiC" id="0xJ-0V-oGD"/>
@@ -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) {