loom & weft
Made for Swift.

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 Direction

Conforms to: Swift.Equatable, Swift.Hashable, Swift.Sendable, Swift.SendableMetatype.

The axis along which a layout allocates regions.

Source · Layout.swift:4

horizontal

Case
case horizontal

The horizontal case. Associated values, if any, are shown in the declaration.

Source · Layout.swift:5

vertical

Case
case vertical

The vertical case. Associated values, if any, are shown in the declaration.

Source · Layout.swift:6