<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PaperKit",
  "identifier" : "/documentation/PaperKit/LinkMarkup/init(url:frame:allowedInteractions:id:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "PaperKit"
    ],
    "preciseIdentifier" : "s:8PaperKit10LinkMarkupV3url5frame19allowedInteractions2idAC10Foundation3URLV_So6CGRectVAA0dH0VAA0D2IDVyACGtcfc"
  },
  "title" : "init(url:frame:allowedInteractions:id:)"
}
-->

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

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

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)