Unreleased APIs from PR #2. Not in 0.2.1. Stable 0.2.1 reference.
LOOM Unreleased (PR #2) / RENDERING AND LAYOUT
Direction
Horizontal allocates columns side by side; vertical allocates rows top to bottom.
Standard inherited Swift protocol operations such as synthesized equality and OptionSet set operations are not repeated. The public declarations below are extracted from the exact source revision listed in the coverage manifest.
Example
let direction: Direction = .vertical
_ = Layout(direction, [.fill(1)]).split(Rect(width: 80, height: 24))Members on this page
Feature guides and release status
Direction
Enumeration
enum DirectionConforms to: Swift.Equatable, Swift.Hashable, Swift.Sendable, Swift.SendableMetatype.
The axis along which a layout allocates regions.
Source · Layout.swift:4horizontal
Case
case horizontalThe horizontal case. Associated values, if any, are shown in the declaration.
Source · Layout.swift:5vertical
Case
case verticalThe vertical case. Associated values, if any, are shown in the declaration.
Source · Layout.swift:6