<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/CALayer/autoresizingMask",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:objc(cs)CALayer(py)autoresizingMask"
  },
  "title" : "autoresizingMask"
}
-->

# autoresizingMask

A bitmask defining how the layer is resized when the bounds of its superlayer changes.

```
var autoresizingMask: CAAutoresizingMask { get set }
```

## Discussion

If your app does not use a layout manager or constraints to handle layout changes, you can assign a value to this property to adjust the layer’s size in response to changes in the superlayer’s bounds. For a list of possible values, see [`CAAutoresizingMask`](/documentation/QuartzCore/CAAutoresizingMask).

The default value of this property is [`kCALayerNotSizable`](/documentation/QuartzCore/CAAutoresizingMask/kCALayerNotSizable).

---

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)