init(url:frame:allowedInteractions:id:)
Initializes and returns a new link markup from the specified parameters.
Declaration
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.