<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PaperKit",
  "identifier" : "/documentation/PaperKit/MarkupInteractions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "PaperKit"
    ],
    "preciseIdentifier" : "s:8PaperKit18MarkupInteractionsV"
  },
  "title" : "MarkupInteractions"
}
-->

# MarkupInteractions

Interactions that people can perform on markup elements.

```
struct MarkupInteractions
```

## Overview

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
```

## Topics

### Configuring interactions

[`static let rotate: MarkupInteractions`](/documentation/PaperKit/MarkupInteractions/rotate)

Allows rotation.

[`static let resize: MarkupInteractions`](/documentation/PaperKit/MarkupInteractions/resize)

Allows resizing.

[`static let move: MarkupInteractions`](/documentation/PaperKit/MarkupInteractions/move)

Allows moving.

[`static let delete: MarkupInteractions`](/documentation/PaperKit/MarkupInteractions/delete)

Allows deletion.

[`static let style: MarkupInteractions`](/documentation/PaperKit/MarkupInteractions/style)

Allows style changes.

[`static let select: MarkupInteractions`](/documentation/PaperKit/MarkupInteractions/select)

Allows selection.

### Using presets

[`static let all: MarkupInteractions`](/documentation/PaperKit/MarkupInteractions/all)

All interactions enabled (default).

[`static let readOnly: MarkupInteractions`](/documentation/PaperKit/MarkupInteractions/readOnly)

Read-only: no interactions enabled.

## Relationships

### Conforms To

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`OptionSet`](/documentation/Swift/OptionSet)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)