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

# Markup

A markup component.

```
protocol Markup : Sendable
```

## Overview> Note: This protocol is designed for PaperKit’s internal types only. Client conformance
> is not supported.

## Topics

### Laying out

[`var frame: CGRect`](/documentation/PaperKit/Markup/frame)

The element’s unrotated frame.

[`var rotation: CGFloat`](/documentation/PaperKit/Markup/rotation)

The element’s rotation around the center of its frame.

[`var renderFrame: CGRect`](/documentation/PaperKit/Markup/renderFrame)

The unrotated frame that tightly fits the rendered contents of the element.

[`func applyTransform(CGAffineTransform)`](/documentation/PaperKit/Markup/applyTransform(_:))

Transforms this element with the specified transform.

### Controlling interactions

[`var allowedInteractions: MarkupInteractions`](/documentation/PaperKit/Markup/allowedInteractions)

Interactions that people can perform on this markup.

[`struct MarkupInteractions`](/documentation/PaperKit/MarkupInteractions)

Interactions that people can perform on markup elements.

### Managing feature compatibility

[`var featureSet: FeatureSet`](/documentation/PaperKit/Markup/featureSet)

The set of features used by this markup.

[`func removeContentUnsupported(by: FeatureSet) -> Bool`](/documentation/PaperKit/Markup/removeContentUnsupported(by:))

Removes all content not supported by the provided feature set.

### Identifying markup

[`var elementID: MarkupOrderedSet.ElementID`](/documentation/PaperKit/Markup/elementID)

The element identifier for use in a markup ordered set.

## Relationships

### Conforming Types

[`ImageMarkup`](/documentation/PaperKit/ImageMarkup)

[`ShapeMarkup`](/documentation/PaperKit/ShapeMarkup)

[`LinkMarkup`](/documentation/PaperKit/LinkMarkup)

[`LoupeMarkup`](/documentation/PaperKit/LoupeMarkup)

### Inherits From

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

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