---
title: MarkupAutoresizing
framework: paperkit
role: symbol
role_heading: Structure
path: paperkit/markupautoresizing
---

# MarkupAutoresizing

Automatic sizing behaviors for this markup.

## Declaration

```swift
struct MarkupAutoresizing
```

## Overview

Overview Controls whether the markup automatically adjusts its dimensions to fit content changes. var textBox = ShapeMarkup(     frame: CGRect(x: 0, y: 0, width: 100, height: 50),     shape: .rectangle,     attributedText: AttributedString("Short"),     autoresizing: [.flexibleWidth] )

textBox.attributedText = AttributedString("This is much longer text") // textBox.frame.width is unaffected, but textBox.renderFrame.width has automatically increased

## Topics

### Type Properties

- [flexibleHeight](paperkit/markupautoresizing/flexibleheight.md)
- [flexibleWidth](paperkit/markupautoresizing/flexiblewidth.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)
