struct HSplitView
Swift
struct HSplitView<Leading, Trailing> where Leading : View, Trailing : View
Two side-by-side panes with a draggable divider between them.
VSplitView on the other axis, and everything documented there holds here
with widths in place of heights: the split is a fraction of the shared
width, minLeading / minTrailing are where the drag stops, and a pane
that should fill its width needs to say so.
HSplitView(fraction: $sidebarSplit, minLeading: 180, minTrailing: 320) {
fileList
} trailing: {
EditorView(text: $text).flexGrow(1)
}
Sources/LavaUI/SplitView.swift:129
Constructors
init(fraction: Binding<Float>, minLeading: Float = 80, minTrailing: Float = 80, style: SplitStyle = SplitStyle(), @ViewBuilder leading: () -> Leading, @ViewBuilder trailing: () -> Trailing)
Not documented.
Sources/LavaUI/SplitView.swift:138
init(initialFraction: Float = 0.5, minLeading: Float = 80, minTrailing: Float = 80, style: SplitStyle = SplitStyle(), @ViewBuilder leading: () -> Leading, @ViewBuilder trailing: () -> Trailing)
Not documented.
Sources/LavaUI/SplitView.swift:155
Properties
var dumpDetail: String { get }
Not documented.
Sources/LavaUI/SplitView.swift:172
var fraction: Binding<Float>?
Not documented.
Sources/LavaUI/SplitView.swift:130
var initialFraction: Float
Not documented.
Sources/LavaUI/SplitView.swift:131
var leading: Leading
Not documented.
Sources/LavaUI/SplitView.swift:135
var minLeading: Float
Not documented.
Sources/LavaUI/SplitView.swift:132
var minTrailing: Float
Not documented.
Sources/LavaUI/SplitView.swift:133
var style: SplitStyle
Not documented.
Sources/LavaUI/SplitView.swift:134
var trailing: Trailing
Not documented.
Sources/LavaUI/SplitView.swift:136
Methods
func mountPrimitive() -> any AnyViewNode
Not documented.
Sources/LavaUI/SplitView.swift:186
func reconcilePrimitive(_ node: any AnyViewNode) -> any AnyViewNode
Not documented.
Sources/LavaUI/SplitView.swift:195
func structureLines(indent: Int = 0) -> [String]
Not documented.
Sources/LavaUI/SplitView.swift:176