The set of actions to perform when swiping on rows of a table.
SDKs
- iOS 11.0+
- Mac Catalyst 13.0+
Framework
- UIKit
Declaration
class UISwipeActionsConfiguration : NSObject
Overview
Create a UISwipe
object to associate custom swipe actions with a row of your table view. Users swipe horizontally left or right in a table view to reveal the actions associated with a row. Each swipe-actions object contains the set of actions to display for each type of swipe.
To add custom actions to your table view’s rows, implement the table
or table
method of your table view's delegate. In those methods, create and return the actions for the indicated row. The table displays your action buttons and executes the appropriate handler block when the user taps one of them.