A Boolean value that indicates whether the spacing between adjacent views should be equal to each other.
- macOS 10.9–10.11Deprecated
The distances between adjacent views in a stack view are either constrained to equal each other or settable to custom spacings using the
set method. The default value for the
has property is
NO, which enables custom spacing. To require equal spacing, set this property to
YES, which disables the
has set to
NO (the default), the Auto Layout constraints for spacing between views in a gravity area are as shown in table Table 1, in the description of the
If you specify equal spacing, the system changes these constraints to the values shown in table Table 1.
Value for constraint priority
Equal inter-view spacing
Stack view hugging priority, identified as the constraint value in row 1, has the default value
NSLayout. You can adjust hugging priority by using the