The rectangle that defines the stretchable and nonstretchable regions of a view.
- iOS 3.0–6.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
You use this property to control how a view’s content is stretched to fill its bounds when the view is resized. Content stretching is often used to animate the resizing of a view. For example, buttons and other controls use stretching to maintain crisp borders while allowing the middle portions of the control to stretch and fill the available space.
The values you specify for this rectangle must be normalized to the range
1. These values are then scaled to the size of the view’s content to obtain the appropriate pixel values. The default value for this rectangle has an origin of
(0 and a size of
(1. This reflects a rectangle whose stretchable portion encompasses the entire content.