loom & weft
Made for Swift.

Published release 0.2.1. Unreleased PR #2 reference.

LOOM 0.2.1 / COLLECTIONS AND INTERACTION

TableRow

A stable table row.

Missing cells are blank; cells beyond the column count are ignored.

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

TableRow

Structure
struct TableRow<ID> where ID : Hashable

Conforms to: Swift.Identifiable, Swift.Sendable, Swift.SendableMetatype.

A stable table row.

Missing cells are blank; cells beyond the column count are ignored.

Source · Table.swift:34

id

Instance Property
var id: ID

Stable identity for this icon or code block.

Source · Table.swift:35

cells

Instance Property
var cells: [TableCell]

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

Source · Table.swift:36

height

Instance Property
var height: Int

Height in terminal cells.

Source · Table.swift:37

style

Instance Property
var style: Style

Visual attributes used when painting this value.

Source · Table.swift:38

patch

Instance Property
var patch: StylePatch?

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

Source · Table.swift:39

topMargin

Instance Property
var topMargin: Int

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

Source · Table.swift:40

bottomMargin

Instance Property
var bottomMargin: Int

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

Source · Table.swift:41

init(id:cells:height:style:patch:)

Initializer
init(id: ID, cells: [TableCell], height: Int = 1, style: Style = Style(), patch: StylePatch? = nil)

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

Parameters (5)
id
Stable entry/icon identity, not an array index.
cells
Argument type and any default are shown in the declaration; see the behavior notes above.
height
Available rows in terminal cells.
style
Text/cell appearance.
patch
Argument type and any default are shown in the declaration; see the behavior notes above.
Source · Table.swift:43