-
Assign the child a fixed width equal to the payload.
Declaration
Swift
case absolute(CGFloat)
-
Assign the child a proportional width of the available layout width. Note that proportional children take proportional shares of the available layout width.
Example:
Available layout width: 100 Child A: .proportional(1) -> 25 (100 * 1/4) Child B: .proportional(3) -> 75 (100 * 3/4)
Example:
Available layout width: 100 Child A: .proportional(0.25) -> 25 (100 * 1/4) Child B: .proportional(0.75) -> 75 (100 * 3/4)
Declaration
Swift
case proportional(CGFloat)