LavaUI docs GitHub

struct DividerStyle

Swift

struct DividerStyle

Colour and metrics for a Divider.

Sources/LavaUI/Divider.swift:63

Constructors

init(thickness: Float? = nil, spacing: Float = 4, color: Color? = nil)

Creates a style. nil takes the theme's borderWidth and border.

Sources/LavaUI/Divider.swift:72

Properties

var color: Color

Colour of the rule.

Sources/LavaUI/Divider.swift:69

var spacing: Float

Clear space on each side of the rule, along the container's axis.

Sources/LavaUI/Divider.swift:67

var thickness: Float

Width of the rule, in points.

Sources/LavaUI/Divider.swift:65