diff --git a/Pods/MobilePlayer/MobilePlayer/MobilePlayerViewController.swift b/Pods/MobilePlayer/MobilePlayer/MobilePlayerViewController.swift index b478a2a6a7..050c28ecee 100644 --- a/Pods/MobilePlayer/MobilePlayer/MobilePlayerViewController.swift +++ b/Pods/MobilePlayer/MobilePlayer/MobilePlayerViewController.swift @@ -528,14 +528,19 @@ open class MobilePlayerViewController: MPMoviePlayerViewController { } if let currentTimeLabel = getViewForElementWithIdentifier("currentTime") as? Label { currentTimeLabel.text = textForPlaybackTime(time: moviePlayer.currentPlaybackTime) + currentTimeLabel.accessibilityHint = textForPlaybackTime(time: moviePlayer.currentPlaybackTime) + currentTimeLabel.superview?.setNeedsLayout() } if let remainingTimeLabel = getViewForElementWithIdentifier("remainingTime") as? Label { remainingTimeLabel.text = "-\(textForPlaybackTime(time: moviePlayer.duration - moviePlayer.currentPlaybackTime))" + remainingTimeLabel.accessibilityHint = + "-\(textForPlaybackTime(time: moviePlayer.duration - moviePlayer.currentPlaybackTime))" remainingTimeLabel.superview?.setNeedsLayout() } if let durationLabel = getViewForElementWithIdentifier("duration") as? Label { durationLabel.text = textForPlaybackTime(time: moviePlayer.duration) + durationLabel.accessibilityHint = textForPlaybackTime(time: moviePlayer.duration) durationLabel.superview?.setNeedsLayout() } updateShownTimedOverlays() diff --git a/Rocket.Chat/Views/Chat/New Chat/Cells/ImageMessageCell.swift b/Rocket.Chat/Views/Chat/New Chat/Cells/ImageMessageCell.swift index 24a9615c0a..24a1927fbe 100644 --- a/Rocket.Chat/Views/Chat/New Chat/Cells/ImageMessageCell.swift +++ b/Rocket.Chat/Views/Chat/New Chat/Cells/ImageMessageCell.swift @@ -39,6 +39,7 @@ class ImageMessageCell: BaseImageMessageCell, SizingCell { imageView.layer.cornerRadius = 4 imageView.layer.borderWidth = 1 imageView.clipsToBounds = true + imageView.accessibilityTraits = .image } } diff --git a/Rocket.Chat/Views/Chat/New Chat/Cells/ImageMessageCell.xib b/Rocket.Chat/Views/Chat/New Chat/Cells/ImageMessageCell.xib index 19a0086847..d0dd81419d 100644 --- a/Rocket.Chat/Views/Chat/New Chat/Cells/ImageMessageCell.xib +++ b/Rocket.Chat/Views/Chat/New Chat/Cells/ImageMessageCell.xib @@ -1,11 +1,11 @@ - + - + @@ -50,6 +50,9 @@ + + + @@ -83,6 +86,10 @@