Generated from iOS SDK 27.1. Availability is shown on each declaration; permissions and entitlements still apply.
Functions and constants
get · iOS 27.0+rawValue
TypeScriptgetRawValue($self: MarkupID): ArrayBuffer
Swift declarationvar rawValue: Data { get }
The corresponding value of the raw type.
A new instance initialized with `rawValue` will be equivalent to this
instance. For example:
enum PaperSize: String {
case A4, A5, Letter, Legal
}
let selectedSize = PaperSize.Letter
print(selectedSize.rawValue)
// Prints "Letter"
print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!)
// Prints "true"
init · iOS 27.0+init
TypeScriptinit(rawValue: ArrayBuffer): (MarkupID<unknown>) | null
Swift declarationinit?(rawValue: Data)
Creates a new instance with the specified raw value.
If there is no value of the type that corresponds with the specified raw
value, this initializer returns `nil`. For example:
enum PaperSize: String {
case A4, A5, Letter, Legal
}
print(PaperSize(rawValue: "Legal"))
// Prints "Optional(PaperSize.Legal)"
print(PaperSize(rawValue: "Tabloid"))
// Prints "nil"
- Parameter rawValue: The raw value to use for the new instance.
get · iOS 27.0+featureSet
TypeScriptget featureSet(): FeatureSet
Swift declarationvar featureSet: FeatureSet { get }
The set of features used by this markup.
get · iOS 27.0+renderFrame
TypeScriptget 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.
method · iOS 27.0+applyTransform
TypeScriptapplyTransform(transform: _CoreFoundation_CGAffineTransform): void
Swift declarationmutating func applyTransform(_ transform: CGAffineTransform)
Transforms this element with the specified transform.
- Parameter transform: The transform applied to the element. Skew is ignored.
get · iOS 27.0+allowedInteractions
TypeScriptget allowedInteractions(): 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.
set · iOS 27.0+allowedInteractions
TypeScriptset 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.
method · iOS 27.0+removeContentUnsupported
TypeScriptremoveContentUnsupported(featureSet: FeatureSet): boolean
Swift declarationmutating 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+frame
TypeScriptget 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 · iOS 27.0+frame
TypeScriptset 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 · iOS 27.0+rotation
TypeScriptget rotation(): 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.
set · iOS 27.0+rotation
TypeScriptset 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 · iOS 27.0+elementID
TypeScriptget elementID(): MarkupOrderedSet_ElementID
Swift declarationvar elementID: MarkupOrderedSet.ElementID { get }
The element identifier for use in a markup ordered set.