Explorar o código

return to selected cell after enabling multi-select over voiceOver

cyberta %!s(int64=3) %!d(string=hai) anos
pai
achega
c810b52e01
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      deltachat-ios/Chat/ChatViewController.swift

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

@@ -233,6 +233,11 @@ class ChatViewController: UITableViewController {
                     guard let self = self else { return }
                     let messageId = self.messageIds[indexPath.row]
                     self.setEditing(isEditing: true, selectedAtIndexPath: indexPath)
+                    if UIAccessibility.isVoiceOverRunning {
+                        DispatchQueue.main.asyncAfter(deadline: .now() + 0.1, execute: { [weak self] in
+                            UIAccessibility.post(notification: .layoutChanged, argument: self?.tableView.cellForRow(at: indexPath))
+                        })
+                    }
                 }
             }
         )