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

# autoresizing

Automatic sizing behaviors for this markup.

```
var autoresizing: MarkupAutoresizing { get set }
```

## Discussion

Controls whether the markup automatically adjusts its dimensions to fit content changes.

> Note: The layout mode (centered vs. top-anchored) is decided at init time and
> preserved across reassignment; setting `.flexibleHeight` here on a shape that
> didn’t have `.flexibleHeight` at init will use the legacy top-anchored layout.
> New shapes should express the mode through `init(...autoresizing:)` instead.

---

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)