loom & weft
Made for Swift.

Published release 0.2.1. Unreleased PR #2 reference.

LOOM 0.2.1 / ADDITIONAL WIDGETS AND TEXT

Tab

A labeled tab with a caller-owned stable identity.

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

Tab

Structure
struct Tab<ID> where ID : Hashable, ID : Sendable

Conforms to: Swift.Sendable, Swift.SendableMetatype.

A labeled tab with a caller-owned stable identity.

Source · Tabs.swift:2

id

Instance Property
var id: ID

Stable identity for this icon or code block.

Source · Tabs.swift:3

label

Instance Property
var label: String

Visible item label.

Source · Tabs.swift:4

init(id:label:)

Initializer
init(id: ID, label: String)

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

Parameters (2)
id
Stable entry/icon identity, not an array index.
label
Argument type and any default are shown in the declaration; see the behavior notes above.
Source · Tabs.swift:6