Enumeration
ScenarioLayout.Sizing
public enum Sizing: Equatable, ExpressibleByIntegerLiteral, ExpressibleByFloatLiteral
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
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 |
Enumeration Cases
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.