---
title: autoresizingMask
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/calayer/autoresizingmask
---

# autoresizingMask

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

## Declaration

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

## Discussion

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. The default value of this property is kCALayerNotSizable.

## See Also

### Managing layer resizing and layout

- [layoutManager](quartzcore/calayer/layoutmanager.md)
- [setNeedsLayout()](quartzcore/calayer/setneedslayout().md)
- [layoutSublayers()](quartzcore/calayer/layoutsublayers().md)
- [layoutIfNeeded()](quartzcore/calayer/layoutifneeded().md)
- [needsLayout()](quartzcore/calayer/needslayout().md)
- [resize(withOldSuperlayerSize:)](quartzcore/calayer/resize(witholdsuperlayersize:).md)
- [resizeSublayers(withOldSize:)](quartzcore/calayer/resizesublayers(witholdsize:).md)
- [preferredFrameSize()](quartzcore/calayer/preferredframesize().md)
