---
title: action
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfoutline/action
---

# action

Returns the action performed when users click the outline.

## Declaration

```swift
var action: PDFAction? { get set }
```

## Discussion

Discussion The root outline serves only as a container for the outlines it owns; it does not have an action. Note that a PDFOutline object can have either an action or a destination, not both. If the PDFOutline object has a destination, instead of an action,  action returns a PDFActionGoTo object (this is equivalent to calling destination on the PDFOutline object). For other action types, action returns the appropriate PDF Kit action type object, such as PDFActionURL.

## See Also

### Managing Actions and Destinations

- [destination](pdfkit/pdfoutline/destination.md)
