---
title: "init(url:frame:allowedInteractions:id:)"
framework: paperkit
role: symbol
role_heading: Initializer
path: "paperkit/linkmarkup/init(url:frame:allowedinteractions:id:)"
---

# init(url:frame:allowedInteractions:id:)

Initializes and returns a new link markup from the specified parameters.

## Declaration

```swift
init(url: URL, frame: CGRect, allowedInteractions: MarkupInteractions = .all, id: MarkupID<LinkMarkup> = MarkupID())
```

## Parameters

- `url`: The URL that the link navigates to when activated.
- `frame`: The frame of the link.
- `allowedInteractions`: The flags controlling the interactions people can perform. Defaults to .all.
- `id`: The identity of the link. Defaults to a unique id.
