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 : SendableConforms to: Swift.Sendable, Swift.SendableMetatype.
A labeled tab with a caller-owned stable identity.
Source · Tabs.swift:2id
Instance Property
var id: IDStable identity for this icon or code block.
Source · Tabs.swift:3label
Instance Property
var label: StringVisible item label.
Source · Tabs.swift:4init(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.