瀏覽代碼

fix accessibilty label for InputTextView

cyberta 3 年之前
父節點
當前提交
8ecac1b05f
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      deltachat-ios/Chat/InputBarAccessoryView/InputTextView.swift

+ 2 - 0
deltachat-ios/Chat/InputBarAccessoryView/InputTextView.swift

@@ -76,6 +76,7 @@ open class InputTextView: UITextView {
         label.text = "Aa"
         label.backgroundColor = .clear
         label.translatesAutoresizingMaskIntoConstraints = false
+        label.isAccessibilityElement = false
         return label
     }()
     
@@ -83,6 +84,7 @@ open class InputTextView: UITextView {
     open var placeholder: String? = "Aa" {
         didSet {
             placeholderLabel.text = placeholder
+            accessibilityLabel = placeholder
         }
     }