<!--
{
  "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.

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

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

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

The receiver’s width is flexible.

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

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

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

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

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

The receiver’s height is flexible.

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

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

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)