Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

disable trailing swipe action swift

// instead of:

return UISwipeActionsConfiguration(actions: [deleteAction])

// do something like this:

let configuration = UISwipeActionsConfiguration(actions: [deleteAction])
configuration.performsFirstActionWithFullSwipe = false
return configuration
 
PREVIOUS NEXT
Tagged: #disable #trailing #swipe #action #swift
ADD COMMENT
Topic
Name
2+3 =