struct Divider
Swift
struct Divider
A hairline rule separating content.
Orientation is inferred from the container: horizontal inside a VStack,
vertical inside an HStack. That inference has to happen late — a view is
built before it is inserted anywhere, so at construction time there is
nothing to ask. The node reads its Yoga owner instead, which is set by the
time layout and emit run. Pass an axis explicitly to override it.
Sources/LavaUI/Divider.swift:10
Constructors
init(_ axis: DividerAxis? = nil, style: DividerStyle = DividerStyle())
Creates a divider.
- axis: Which way the rule runs;
nilinfers it from the container. - style: Thickness, spacing and colour; the default follows the theme.
Sources/LavaUI/Divider.swift:20
Properties
var axis: DividerAxis?
Which way the rule runs, or nil to take it from the container.
Sources/LavaUI/Divider.swift:12
var dumpDetail: String { get }
Not documented.
Sources/LavaUI/Divider.swift:25
var style: DividerStyle
Thickness, spacing and colour.
Sources/LavaUI/Divider.swift:14
Methods
func mountPrimitive() -> any AnyViewNode
Not documented.
Sources/LavaUI/Divider.swift:27
func reconcilePrimitive(_ node: any AnyViewNode) -> any AnyViewNode
Not documented.
Sources/LavaUI/Divider.swift:34