Change order of notification dismissal swipe action
This commit is contained in:
parent
9502944e62
commit
682d68fd81
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue