LavaUI docs

struct SplitStyle

Swift

struct SplitStyle

Colours and metrics for a split divider.

Sources/LavaUI/SplitView.swift:206

Constructors

init(thickness: Float = 9, lineThickness: Float? = nil, color: Color? = nil, hover: Color? = nil, active: Color? = nil)

Not documented.

Sources/LavaUI/SplitView.swift:222

Properties

var active: Color

Fill while the divider is being dragged. Unlike the hover tint this is producer-drawn: a fast drag leaves the pointer behind, and renderer hover would drop out exactly when the feedback matters most.

Sources/LavaUI/SplitView.swift:220

var color: Color

Not documented.

Sources/LavaUI/SplitView.swift:213

var hover: Color

Hover tint target. The renderer paints this one (see hoverFill), so pointing at the divider costs no round trip.

Sources/LavaUI/SplitView.swift:216

var lineThickness: Float

The rule drawn down the middle of that strip.

Sources/LavaUI/SplitView.swift:212

var thickness: Float

Thickness of the whole divider — the strip the pointer has to hit. Bigger than the rule it draws, because a 1px grab target is a 1px grab target.

Sources/LavaUI/SplitView.swift:210