Enumeration
ScenarioLayout.Sizing
public enum Sizing
A sizing strategy for the horizontal or vertical dimensions.
Relationships
Member Of
ScenarioLayout
Represents how the component should be laid out.
Conforms To
Equatable
ExpressibleByFloatLiteral
ExpressibleByIntegerLiteral
Enumeration Cases
compressed
case compressed
Compresses to the intrinsic size of the component.
fill
case fill
Fill to the size of the canvas on which to layout the component.
fixed
case fixed(: CGFloat)
Layout with given fixed size. Note: There are cases that to compressed to the size of the canvas on which to layout it when it can't be displayed on the UI.
Initializers
init(integerLiteral:)
public init(integerLiteral value: Int)
Creates a fixed
sizing with the specified value converted to a CGFloat
.
Parameters
Name | Type | Description |
---|---|---|
value | Int |
The actual value of |
init(floatLiteral:)
public init(floatLiteral value: Float)
Creates a fixed
sizing with the specified value converted to a CGFloat
.
Parameters
Name | Type | Description |
---|---|---|
value | Float |
The actual value of |