preferredSize

var preferredSize: View.(min: Size, max: Size) -> Size

Requests the View's preferred size within the specified min and max constraints.

Return

the View's preferred size

Parameters

min

the smallest size this View is allowed to be

max

the largest size this View is allowed to be