LavaUI docs GitHub

struct TransportMark

Swift

struct TransportMark

Media transport symbols — play, pause, previous, next — drawn as filled shapes, for the same reason Mark is not a character: "▶" and "⏮" are whatever the fallback font made of them, sat on its baseline, at a size and weight that never match each other, and "❚❚" is two letters.

Geometry rather than a picture: a few triangles and rectangles cost what a glyph does, need no texture, stay sharp at any scale, and take the theme's colour as it changes. No input of its own, as Mark.

Sources/LavaUI/Mark.swift:79

Constructors

init(_ kind: Kind, size: Float = 16, color: Color = .primary)

Not documented.

Sources/LavaUI/Mark.swift:93

Properties

var body: some View { get }

Not documented.

Sources/LavaUI/Mark.swift:99

var color: Color

Not documented.

Sources/LavaUI/Mark.swift:91

var kind: Kind

Not documented.

Sources/LavaUI/Mark.swift:89

var size: Float

Not documented.

Sources/LavaUI/Mark.swift:90

Types