Browse Source

fix accessibilty label for InputTextView

cyberta 3 years ago
parent
commit
8ecac1b05f
1 changed files with 2 additions and 0 deletions
  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
         }
     }