Contents

autoresizesSubviews

A Boolean value indicating whether the view applies the autoresizing behavior to its subviews when its frame size changes.

Declaration

var autoresizesSubviews: Bool { get set }

Discussion

When the value of this property is true and the view’s frame changes, the view automatically calls the resizeSubviews(withOldSize:) method to facilitate the resizing of its subviews. When the value of this property is false, the view does not autoresize its subviews.

The default value of this property is true.

See Also

Resizing Subviews