all
TypeScriptget all(): MarkupInteractionsSwift declarationstatic let all: MarkupInteractionsAll interactions enabled (default).
struct · iOS 27.0+ · SDK 27.1
struct MarkupInteractionsInteractions that people can perform on markup elements. Use `MarkupInteractions` to control which actions people can perform on markup elements. By default, all interactions are enabled (`.all`), allowing people to freely select, move, resize, rotate, style, and delete markup. ```swift // Prevent people from deleting markup markup.allowedInteractions = .all.subtracting(.delete) // Allow only selection and moving markup.allowedInteractions = [.select, .move] // Make markup completely read-only markup.allowedInteractions = .readOnly ```
get all(): MarkupInteractionsSwift declarationstatic let all: MarkupInteractionsAll interactions enabled (default).
get move(): MarkupInteractionsSwift declarationstatic let move: MarkupInteractionsAllows moving.
get style(): MarkupInteractionsSwift declarationstatic let style: MarkupInteractionsAllows style changes.
get delete(): MarkupInteractionsSwift declarationstatic let delete: MarkupInteractionsAllows deletion.
get resize(): MarkupInteractionsSwift declarationstatic let resize: MarkupInteractionsAllows resizing. This only controls manual resizing through direct interaction (drag handles, gestures). Programmatic resizing via the `frame` property always works. For `ShapeMarkup` elements, automatic content-driven resizing from the `autoresizing` property still occurs independently of this setting.
get rotate(): MarkupInteractionsSwift declarationstatic let rotate: MarkupInteractionsAllows rotation.
get select(): MarkupInteractionsSwift declarationstatic let select: MarkupInteractionsAllows selection.
init(rawValue: number): MarkupInteractionsSwift declarationinit(rawValue: Int)Creates a new option set from the given raw value. This initializer always succeeds, even if the value passed as `rawValue` exceeds the static properties declared as part of the option set. This example creates an instance of `ShippingOptions` with a raw value beyond the highest element, with a bit mask that effectively contains all the declared static members. let extraOptions = ShippingOptions(rawValue: 255) print(extraOptions.isStrictSuperset(of: .all)) // Prints "true" - Parameter rawValue: The raw value of the option set to create. Each bit of `rawValue` potentially represents an element of the option set, though raw values may include bits that are not defined as distinct values of the `OptionSet` type.
getRawValue($self: MarkupInteractions): numberSwift declarationlet rawValue: IntThe 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"
get readOnly(): MarkupInteractionsSwift declarationstatic let readOnly: MarkupInteractionsRead-only: no interactions enabled.
No declarations were skipped in this snapshot.