<!--
{
  "availability" : [
    "iOS: 8.0.0 - 13.0.0",
    "iPadOS: 8.0.0 - 13.0.0",
    "macCatalyst: 13.1.0 - 13.1.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableViewRowAction",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITableViewRowAction"
  },
  "title" : "UITableViewRowAction"
}
-->

# UITableViewRowAction

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

```
@MainActor class UITableViewRowAction
```

## Overview

Create a [`UITableViewRowAction`](/documentation/UIKit/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:)`](/documentation/UIKit/UITableViewDelegate/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.

## Topics

### Creating a table row action

[`+  rowActionWithStyle:title:handler:`](/documentation/UIKit/UITableViewRowAction/init(style:title:handler:))

Creates and returns a new table view row action object.

### Configuring the action’s appearance

[`style`](/documentation/UIKit/UITableViewRowAction/style-swift.property)

The style applied to the action button.

[`Style`](/documentation/UIKit/UITableViewRowAction/Style-swift.enum)

Constants that specify the appearance of action buttons.

[`title`](/documentation/UIKit/UITableViewRowAction/title)

The title of the action button.

[`backgroundColor`](/documentation/UIKit/UITableViewRowAction/backgroundColor)

The background color of the action button.

[`backgroundEffect`](/documentation/UIKit/UITableViewRowAction/backgroundEffect)

The visual effect to apply to the button.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Sendable`](/documentation/Swift/Sendable)

[`NSCopying`](/documentation/Foundation/NSCopying)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)