Skip to content

Commit 1b00c1f

Browse files
committed
Add an accessibility label to the manual entry button
1 parent c5cb2ab commit 1b00c1f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Authenticator/Source/TokenScannerViewController.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,13 @@ final class TokenScannerViewController: UIViewController, QRScannerDelegate {
9999
target: self,
100100
action: #selector(TokenScannerViewController.cancel)
101101
)
102-
navigationItem.rightBarButtonItem = UIBarButtonItem(
102+
let manualEntryBarButtonItem = UIBarButtonItem(
103103
barButtonSystemItem: .compose,
104104
target: self,
105105
action: #selector(TokenScannerViewController.addTokenManually)
106106
)
107+
manualEntryBarButtonItem.accessibilityLabel = "Manual token entry"
108+
navigationItem.rightBarButtonItem = manualEntryBarButtonItem
107109

108110
videoLayer.videoGravity = AVLayerVideoGravityResizeAspectFill
109111
videoLayer.frame = view.layer.bounds

0 commit comments

Comments
 (0)