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

# destination

Returns the destination associated with the outline.

## Declaration

```swift
var destination: PDFDestination? { get set }
```

## Discussion

Discussion The root outline serves only as a container for the outlines it owns; it does not have a destination. Note that a PDFOutline object can have either a destination or an action, not both. This method may return NULL if the outline has an associated action instead of a destination. Note that if the associated action is a PDFActionGoTo, this method returns the destination from the PDFActionGoTo object. However, it is better to use the action method for this purpose.

## See Also

### Managing Actions and Destinations

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