---
title: "setDestination(_:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfannotationlink/setdestination(_:)"
---

# setDestination(_:)

Sets the destination for the link as a PDFDestination object.

## Declaration

```swift
func setDestination(_ destination: PDFDestination!)
```

## See Also

### Working with link destinations

- [destination()](pdfkit/pdfannotationlink/destination().md)
- [url()](pdfkit/pdfannotationlink/url().md)
- [setURL(_:)](pdfkit/pdfannotationlink/seturl(_:).md)
