Browse Source

make audio player progressbar and time label inaccessible, leaving only the play/stop button

cyberta 4 years ago
parent
commit
1c4e014ccf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      deltachat-ios/Chat/Views/AudioPlayerView.swift

+ 2 - 0
deltachat-ios/Chat/Views/AudioPlayerView.swift

@@ -29,6 +29,7 @@ open class AudioPlayerView: UIView {
         durationLabel.adjustsFontForContentSizeCategory = true
         durationLabel.text = "0:00"
         durationLabel.translatesAutoresizingMaskIntoConstraints = false
+        durationLabel.isAccessibilityElement = false
         return durationLabel
     }()
 
@@ -36,6 +37,7 @@ open class AudioPlayerView: UIView {
         let progressView = UIProgressView(progressViewStyle: .default)
         progressView.progress = 0.0
         progressView.translatesAutoresizingMaskIntoConstraints = false
+        progressView.isAccessibilityElement = false
         return progressView
     }()