---
title: "resizeSublayers(withOldSize:)"
framework: quartzcore
role: symbol
role_heading: Instance Method
path: "quartzcore/calayer/resizesublayers(witholdsize:)"
---

# resizeSublayers(withOldSize:)

Informs the receiver’s sublayers that the receiver’s size has changed.

## Declaration

```swift
func resizeSublayers(withOldSize size: CGSize)
```

## Parameters

- `size`: The previous size of the current layer.

## Discussion

Discussion When the autoresizingMask property is used for resizing and the bounds of this layer change, the layer calls this method. The default implementation calls the resize(withOldSuperlayerSize:) method of each sublayer to let it know its superlayer’s bounds changed. You should not need to call or override this method directly.

## 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)
- [autoresizingMask](quartzcore/calayer/autoresizingmask.md)
- [resize(withOldSuperlayerSize:)](quartzcore/calayer/resize(witholdsuperlayersize:).md)
- [preferredFrameSize()](quartzcore/calayer/preferredframesize().md)
