Fix buttons a11y label for close and share button for image vc

Image View Controller buttons both close and share don't have correct
a11y label. This will add the localised label
This commit is contained in:
Rizwan Mohamed Ibrahim committed 2020-04-21 22:14:58 +05:30
1 parent f7bdf9d47c
commit 108da4ccf4
1 file changed
+2
+2
View File
@@ -29,6 +29,8 @@ class ImageViewController: UIViewController {
super.viewDidLoad()
closeButton.imageView?.contentMode = .scaleAspectFit
closeButton.accessibilityLabel = NSLocalizedString("Close", comment: "Close")
shareButton.accessibilityLabel = NSLocalizedString("Share", comment: "Share")
imageScrollView.setup()
imageScrollView.imageScrollViewDelegate = self