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

# setURL(_:)

Sets the destination for the link as a URL.

## Declaration

```swift
func setURL(_ url: URL!)
```

## See Also

### Working with link destinations

- [destination()](pdfkit/pdfannotationlink/destination().md)
- [setDestination(_:)](pdfkit/pdfannotationlink/setdestination(_:).md)
- [url()](pdfkit/pdfannotationlink/url().md)
