One Logo Pool Ball
PaperKit · IOS API REFERENCE

LinkMarkup

struct · iOS 27.0+ · SDK 27.1

struct LinkMarkup

A URL link that a person can tap on in the canvas.

Members (15)

get · iOS 27.0+

featureSet

TypeScript
get featureSet(): FeatureSet
Swift declaration
var featureSet: FeatureSet { get }

The set of features used by this markup.

get · iOS 27.0+

renderFrame

TypeScript
get renderFrame(): { x: number; y: number; width: number; height: number }
Swift declaration
var renderFrame: CGRect { get }

The unrotated frame that tightly fits the rendered contents of the element. This frame includes padding around `frame` to ensure it includes all the rendered aspects of the content. For example, this frame will include the strokes, and shadows of any contents.

get · iOS 27.0+

allowedInteractions

TypeScript
get allowedInteractions(): MarkupInteractions
Swift declaration
var allowedInteractions: MarkupInteractions { get set }

Interactions that people can perform on this markup. Use this to configure how people can interact with the markup, such as preventing resizing, rotation, or deletion. The default is `.all`, which allows all interactions. Set to `.readOnly` to prevent all modifications.

set · iOS 27.0+

allowedInteractions

TypeScript
set allowedInteractions(value: MarkupInteractions)
Swift declaration
var allowedInteractions: MarkupInteractions { get set }

Interactions that people can perform on this markup. Use this to configure how people can interact with the markup, such as preventing resizing, rotation, or deletion. The default is `.all`, which allows all interactions. Set to `.readOnly` to prevent all modifications.

method · iOS 27.0+

removeContentUnsupported

TypeScript
removeContentUnsupported(featureSet: FeatureSet): boolean
Swift declaration
mutating func removeContentUnsupported(by featureSet: FeatureSet) -> Bool

Removes all content not supported by the provided feature set. - Parameter featureSet: The feature set to limit this markup to. - Returns: True if this was successful and the feature set is now supported. If the returned value is `true` then `self.featureSet.isSubset(of: featureSet)` will be `true`.

get · iOS 27.0+

id

TypeScript
get id(): MarkupID<LinkMarkup>
Swift declaration
var id: MarkupID<LinkMarkup>

Stable unique identity of the markup.

set · iOS 27.0+

id

TypeScript
set id(value: MarkupID<LinkMarkup>)
Swift declaration
var id: MarkupID<LinkMarkup>

Stable unique identity of the markup.

get · iOS 27.0+

url

TypeScript
get url(): string
Swift declaration
var url: URL { get set }

The URL that the link navigates to when activated.

set · iOS 27.0+

url

TypeScript
set url(value: string)
Swift declaration
var url: URL { get set }

The URL that the link navigates to when activated.

init · iOS 27.0+

init

TypeScript
static init(url: string, frame: { x: number; y: number; width: number; height: number }, allowedInteractions?: MarkupInteractions, id?: MarkupID<LinkMarkup>): LinkMarkup
Swift declaration
init(url: URL, frame: CGRect, allowedInteractions: MarkupInteractions = .all, id: MarkupID<LinkMarkup> = MarkupID())

Initializes and returns a new link markup from the specified parameters. - 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.

get · iOS 27.0+

frame

TypeScript
get frame(): { x: number; y: number; width: number; height: number }
Swift declaration
var frame: CGRect { get set }

The element's unrotated frame. Together with `rotation` this defines the element's position in its parent. This won't necessarily contain all the contents of an element, rotation and styling may cause the element to extend beyond this frame. Use `renderFrame` for an unrotated frame that contains the entire element.

set · iOS 27.0+

frame

TypeScript
set frame(value: { x: number; y: number; width: number; height: number })
Swift declaration
var frame: CGRect { get set }

The element's unrotated frame. Together with `rotation` this defines the element's position in its parent. This won't necessarily contain all the contents of an element, rotation and styling may cause the element to extend beyond this frame. Use `renderFrame` for an unrotated frame that contains the entire element.

get · iOS 27.0+

rotation

TypeScript
get rotation(): number
Swift declaration
var rotation: CGFloat { get set }

The element's rotation around the center of its frame. Together with `frame` this defines the element's position in its parent.

set · iOS 27.0+

rotation

TypeScript
set rotation(value: number)
Swift declaration
var rotation: CGFloat { get set }

The element's rotation around the center of its frame. Together with `frame` this defines the element's position in its parent.

get · iOS 27.0+

elementID

TypeScript
get elementID(): MarkupOrderedSet_ElementID
Swift declaration
var elementID: MarkupOrderedSet.ElementID { get }

The element identifier for use in a markup ordered set.

Skipped declarations

No declarations were skipped in this snapshot.

All PaperKit types →