Contents

UISwipeActionsConfiguration

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

Declaration

@MainActor class UISwipeActionsConfiguration

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(_:leadingSwipeActionsConfigurationForRowAt:) or tableView(_:trailingSwipeActionsConfigurationForRowAt:) 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

Getting the swipe action information

See Also

Row actions