Contents

zero

A size proposal that contains zero in both dimensions.

Declaration

static let zero: ProposedViewSize

Discussion

Subviews of a custom layout return their minimum size when you propose this value using the dimensions(in:) method. A custom layout should also return its minimum size from the sizeThatFits(proposal:subviews:cache:) method for this value.

See Also

Getting standard proposals