MarkupInteractions
Interactions that people can perform on markup elements.
Declaration
struct MarkupInteractionsOverview
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.
// 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