Package apple.uikit.enums
Class UIStackViewDistribution
- java.lang.Object
-
- apple.uikit.enums.UIStackViewDistribution
-
public final class UIStackViewDistribution extends java.lang.ObjectDistribution—the layout along the stacking axis. All UIStackViewDistribution enum values fit first and last arranged subviews tightly to the container, and except for UIStackViewDistributionFillEqually, fit all items to intrinsicContentSize when possible.
-
-
Field Summary
Fields Modifier and Type Field Description static longEqualCenteringEqual center-to-center spacing of the items is maintained as much as possible while still maintaining a minimum edge-to-edge spacing within the allowed area.static longEqualSpacingAdditional underflow spacing is divided equally in the spaces between the items.static longFillWhen items do not fit (overflow) or fill (underflow) the space available adjustments occur according to compressionResistance or hugging priorities of items, or when that is ambiguous, according to arrangement order.static longFillEquallyItems are all the same size.static longFillProportionallyOverflow or underflow adjustments are distributed among the items proportional to their intrinsicContentSizes.
-
-
-
Field Detail
-
Fill
public static final long Fill
When items do not fit (overflow) or fill (underflow) the space available adjustments occur according to compressionResistance or hugging priorities of items, or when that is ambiguous, according to arrangement order.- See Also:
- Constant Field Values
-
FillEqually
public static final long FillEqually
Items are all the same size. When space allows, this will be the size of the item with the largest intrinsicContentSize (along the axis of the stack). Overflow or underflow adjustments are distributed equally among the items.- See Also:
- Constant Field Values
-
FillProportionally
public static final long FillProportionally
Overflow or underflow adjustments are distributed among the items proportional to their intrinsicContentSizes.- See Also:
- Constant Field Values
-
EqualSpacing
public static final long EqualSpacing
Additional underflow spacing is divided equally in the spaces between the items. Overflow squeezing is controlled by compressionResistance priorities followed by arrangement order.- See Also:
- Constant Field Values
-
EqualCentering
public static final long EqualCentering
Equal center-to-center spacing of the items is maintained as much as possible while still maintaining a minimum edge-to-edge spacing within the allowed area. Additional underflow spacing is divided equally in the spacing. Overflow squeezing is distributed first according to compressionResistance priorities of items, then according to subview order while maintaining the configured (edge-to-edge) spacing as a minimum.- See Also:
- Constant Field Values
-
-