From 682d68fd8100c7c5ed6b850484c4c6b527e5f198 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Thu, 19 Sep 2019 22:09:17 -0400 Subject: [PATCH] Change order of notification dismissal swipe action --- .../Notifications/NotificationsTableViewController.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tusker/Screens/Notifications/NotificationsTableViewController.swift b/Tusker/Screens/Notifications/NotificationsTableViewController.swift index 42a9970ed4..f57b187a98 100644 --- a/Tusker/Screens/Notifications/NotificationsTableViewController.swift +++ b/Tusker/Screens/Notifications/NotificationsTableViewController.swift @@ -160,11 +160,12 @@ class NotificationsTableViewController: EnhancedTableViewController { let cellConfiguration = (tableView.cellForRow(at: indexPath) as? TableViewSwipeActionProvider)?.trailingSwipeActionsConfiguration() let config: UISwipeActionsConfiguration if let cellConfiguration = cellConfiguration { - config = UISwipeActionsConfiguration(actions: [dismissAction] + cellConfiguration.actions) + config = UISwipeActionsConfiguration(actions: cellConfiguration.actions + [dismissAction]) + config.performsFirstActionWithFullSwipe = cellConfiguration.performsFirstActionWithFullSwipe } else { config = UISwipeActionsConfiguration(actions: [dismissAction]) + config.performsFirstActionWithFullSwipe = false } - config.performsFirstActionWithFullSwipe = true return config }