LavaUI docs

struct ComboBoxItem

Swift

struct ComboBoxItem<Tag> where Tag : Hashable

One row of a ComboBox.

tag is both the identity and the value written back through the binding, which is why it carries the Identifiable conformance rather than a separate id: two rows with the same tag would be the same choice, and ForEach would be right to complain about it.

Sources/LavaUI/ComboBox.swift:9

Constructors

init(_ title: String, tag: Tag, detail: String? = nil)

Not documented.

Sources/LavaUI/ComboBox.swift:18

Properties

var detail: String?

Dim trailing text — a path, a count, a kind. Drawn after the title and truncated first, so it never pushes the title out of the row.

Sources/LavaUI/ComboBox.swift:14

var id: Tag { get }

Not documented.

Sources/LavaUI/ComboBox.swift:16

var tag: Tag

Not documented.

Sources/LavaUI/ComboBox.swift:10

var title: String

Not documented.

Sources/LavaUI/ComboBox.swift:11