featureSet
TypeScriptget featureSet(): FeatureSetSwift declarationvar featureSet: FeatureSet { get }The set of features used by this markup.
struct · iOS 27.0+ · SDK 27.1
struct LinkMarkupA URL link that a person can tap on in the canvas.
get featureSet(): FeatureSetSwift declarationvar featureSet: FeatureSet { get }The set of features used by this markup.
get renderFrame(): { x: number; y: number; width: number; height: number }Swift declarationvar 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 allowedInteractions(): MarkupInteractionsSwift declarationvar 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 allowedInteractions(value: MarkupInteractions)Swift declarationvar 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.
removeContentUnsupported(featureSet: FeatureSet): booleanSwift declarationmutating func removeContentUnsupported(by featureSet: FeatureSet) -> BoolRemoves 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 id(): MarkupID<LinkMarkup>Swift declarationvar id: MarkupID<LinkMarkup>Stable unique identity of the markup.
set id(value: MarkupID<LinkMarkup>)Swift declarationvar id: MarkupID<LinkMarkup>Stable unique identity of the markup.
get url(): stringSwift declarationvar url: URL { get set }The URL that the link navigates to when activated.
set url(value: string)Swift declarationvar url: URL { get set }The URL that the link navigates to when activated.
static init(url: string, frame: { x: number; y: number; width: number; height: number }, allowedInteractions?: MarkupInteractions, id?: MarkupID<LinkMarkup>): LinkMarkupSwift declarationinit(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 frame(): { x: number; y: number; width: number; height: number }Swift declarationvar 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 frame(value: { x: number; y: number; width: number; height: number })Swift declarationvar 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 rotation(): numberSwift declarationvar 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 rotation(value: number)Swift declarationvar 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 elementID(): MarkupOrderedSet_ElementIDSwift declarationvar elementID: MarkupOrderedSet.ElementID { get }The element identifier for use in a markup ordered set.
No declarations were skipped in this snapshot.