Procházet zdrojové kódy

swipe from right to left to reply, otherwise closing the chat by swiping the table view from left to right can accidentally happen

cyberta před 4 roky
rodič
revize
ad664bed35
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      deltachat-ios/Chat/ChatViewController.swift

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

@@ -406,7 +406,7 @@ class ChatViewController: UITableViewController {
         markSeenMessagesInVisibleArea()
     }
 
-    override func tableView(_ tableView: UITableView, leadingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration?  {
+    override func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration?  {
         let action = UIContextualAction(style: .normal, title: nil,
                                         handler: { (action, view, completionHandler) in
                                             // Update data source when user taps action