<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: 13.1.0 -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/CAAutoresizingMask",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:@E@CAAutoresizingMask"
  },
  "title" : "CAAutoresizingMask"
}
-->

# CAAutoresizingMask

These constants are used by the [`autoresizingMask`](/documentation/QuartzCore/CALayer/autoresizingMask) property.

```
struct CAAutoresizingMask
```

## Topics

### Constants

[`init(rawValue:)`](/documentation/QuartzCore/CAAutoresizingMask/init(rawValue:))

[`kCALayerNotSizable`](/documentation/QuartzCore/CAAutoresizingMask/kCALayerNotSizable)

The receiver cannot be resized.

[`layerMinXMargin`](/documentation/QuartzCore/CAAutoresizingMask/layerMinXMargin)

The left margin between the receiver and its superview is flexible.

[`layerWidthSizable`](/documentation/QuartzCore/CAAutoresizingMask/layerWidthSizable)

The receiver’s width is flexible.

[`layerMaxXMargin`](/documentation/QuartzCore/CAAutoresizingMask/layerMaxXMargin)

The right margin between the receiver and its superview is flexible.

[`layerMinYMargin`](/documentation/QuartzCore/CAAutoresizingMask/layerMinYMargin)

The bottom margin between the receiver and its superview is flexible.

[`layerHeightSizable`](/documentation/QuartzCore/CAAutoresizingMask/layerHeightSizable)

The receiver’s height is flexible.

[`layerMaxYMargin`](/documentation/QuartzCore/CAAutoresizingMask/layerMaxYMargin)

The top margin between the receiver and its superview is flexible.



---

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)