---
title: MarkupInteractions
framework: paperkit
role: symbol
role_heading: Structure
path: paperkit/markupinteractions
---

# MarkupInteractions

Interactions that people can perform on markup elements.

## Declaration

```swift
struct MarkupInteractions
```

## Overview

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. // 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

- [rotate](paperkit/markupinteractions/rotate.md)
- [resize](paperkit/markupinteractions/resize.md)
- [move](paperkit/markupinteractions/move.md)
- [delete](paperkit/markupinteractions/delete.md)
- [style](paperkit/markupinteractions/style.md)
- [select](paperkit/markupinteractions/select.md)

### Using presets

- [all](paperkit/markupinteractions/all.md)
- [readOnly](paperkit/markupinteractions/readonly.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Markup elements

- [Markup](paperkit/markup.md)
- [ImageMarkup](paperkit/imagemarkup.md)
- [ShapeMarkup](paperkit/shapemarkup.md)
- [LinkMarkup](paperkit/linkmarkup.md)
- [LoupeMarkup](paperkit/loupemarkup.md)
