loom & weft
Made for Swift.

Published release 0.2.1. Unreleased PR #2 reference.

LOOM 0.2.1 / COLLECTIONS AND INTERACTION

TableColumn

A table column, sized by the same constraints used by Layout.

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.

Members on this page

Feature guides and release status

TableColumn

Structure
struct TableColumn

Conforms to: Swift.Sendable, Swift.SendableMetatype.

A table column, sized by the same constraints used by Layout.

Source · Table.swift:19

title

Instance Property
var title: TableCell

Optional title displayed in the top border.

Source · Table.swift:20

width

Instance Property
var width: Constraint

Width in terminal cells.

Source · Table.swift:21

alignment

Instance Property
var alignment: CellAlignment

A public field of this type. Its value type and mutability are shown in the declaration.

Source · Table.swift:22

init(_:width:alignment:)

Initializer
init(_ title: String, width: Constraint = .fill(1), alignment: CellAlignment = .left)

Creates a value with the supplied arguments. Default arguments are shown in the declaration.

Parameters (3)
title
Argument type and any default are shown in the declaration; see the behavior notes above.
width
Available columns in terminal cells.
alignment
Argument type and any default are shown in the declaration; see the behavior notes above.
Source · Table.swift:24