瀏覽代碼

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

cyberta 4 年之前
父節點
當前提交
1c4e014ccf
共有 1 個文件被更改,包括 2 次插入0 次删除
  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
     }()