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 2020-04-21 21:35:26 +05:30
parent f7bdf9d47c
commit 108da4ccf4
No known key found for this signature in database
GPG Key ID: D5BEE468D448BCC5
1 changed files with 2 additions and 0 deletions

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