UITableViewRowAction
A single action to present when the user swipes horizontally in a table row.
Declaration
@MainActor class UITableViewRowActionOverview
Create a UITableViewRowAction object to define a single, custom action for a table row. Users swipe horizontally in a table view to reveal the actions associated with a row. Each row-action object contains the text display, the action to perform, and any specific formatting to apply to that action.
To add custom actions to your table view’s rows, implement the tableView(_:editActionsForRowAt:) method in your table view’s delegate object. In that method, 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.