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

# UIPreviewAction

A preview action, or *peek quick action*, that displays below a peek when a user swipes the peek upward.

```
@MainActor class UIPreviewAction
```

## Overview

A peek quick action typically selects a deep link to your app and has a title, a style, and a handler. Peeks and peek quick actions are available on devices that support 3D Touch.

## Topics

### Creating a peek quick action

[`+  actionWithTitle:style:handler:`](/documentation/UIKit/UIPreviewAction/init(title:style:handler:))

Creates a peek quick action using a specified title, style, and handler.

[`handler`](/documentation/UIKit/UIPreviewAction/handler)

The block called when the peek quick action is selected by the user.

[`Style`](/documentation/UIKit/UIPreviewAction/Style)

The style for a peek quick action.

## Relationships

### Conforms To

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

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

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

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

[`UIPreviewActionItem`](/documentation/UIKit/UIPreviewActionItem)

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

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

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

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

### 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)