소스 검색

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
     }()