Преглед на файлове

improve accessibility label text for the message input view

cyberta преди 3 години
родител
ревизия
ead96cf010
променени са 2 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 0
      deltachat-ios/Chat/ChatViewController.swift
  2. 0 1
      deltachat-ios/Chat/InputBarAccessoryView/InputTextView.swift

+ 1 - 0
deltachat-ios/Chat/ChatViewController.swift

@@ -1184,6 +1184,7 @@ class ChatViewController: UITableViewController {
         messageInputBar.delegate = self
         messageInputBar.inputTextView.tintColor = DcColors.primary
         messageInputBar.inputTextView.placeholder = String.localized("chat_input_placeholder")
+        messageInputBar.inputTextView.accessibilityLabel = String.localized("write_message_desktop")
         messageInputBar.separatorLine.backgroundColor = DcColors.colorDisabled
         messageInputBar.inputTextView.tintColor = DcColors.primary
         messageInputBar.inputTextView.textColor = DcColors.defaultTextColor

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

@@ -84,7 +84,6 @@ open class InputTextView: UITextView {
     open var placeholder: String? = "Aa" {
         didSet {
             placeholderLabel.text = placeholder
-            accessibilityLabel = placeholder
         }
     }