---
title: "init(url:)"
framework: pdfkit
role: symbol
role_heading: Initializer
path: "pdfkit/pdfactionurl/init(url:)-5wtb3"
---

# init(url:)

Initializes a URL action with the specified URL.

## Declaration

```swift
init(url: URL)
```

## Parameters

- `url`: The URL to set the action to.

## Return Value

Return Value An initialized PDFActionURL instance, or NULL if the object could not be initialized.
