Class

UISwipeActionsConfiguration

The set of actions to perform when swiping on rows of a table.

Declaration

@interface UISwipeActionsConfiguration : NSObject

Overview

Create a UISwipeActionsConfiguration 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 tableView:leadingSwipeActionsConfigurationForRowAtIndexPath: or tableView:trailingSwipeActionsConfigurationForRowAtIndexPath: 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.

Topics

Initializing the Swipe Actions

+ configurationWithActions:

Creates a swipe action configuration object with the specified set of actions.

Getting the Swipe Action Information

actions

The swipe actions.

performsFirstActionWithFullSwipe

A Boolean value indicating whether a full swipe automatically performs the first action.

Relationships

Inherits From

See Also

Row Actions

UIContextualAction

An action to display when the user swipes a table row.

UITableViewRowAction

A single action to present when the user swipes horizontally in a table row.

Deprecated