struct Spacer
Swift
struct Spacer
Empty space that expands along its stack's main axis.
Pushes its siblings apart: a Spacer() between two views in an HStack
sends them to opposite edges. Several spacers split the leftover space in
proportion to their flexGrow.
Sources/LavaUI/Spacer.swift:6
Constructors
init(flexGrow: Float = 1)
Creates a spacer with a flexGrow share of the leftover space.
Sources/LavaUI/Spacer.swift:11
Properties
var dumpDetail: String { get }
Not documented.
Sources/LavaUI/Spacer.swift:15
var flexGrow: Float
This spacer's share of the leftover main-axis space.
Sources/LavaUI/Spacer.swift:8
Methods
func mountPrimitive() -> any AnyViewNode
Not documented.
Sources/LavaUI/Spacer.swift:17
func reconcilePrimitive(_ node: any AnyViewNode) -> any AnyViewNode
Not documented.
Sources/LavaUI/Spacer.swift:27