struct Edge
Swift
struct Edge
Which sides of a box a layout inset applies to.
Matches SwiftUI's Edge.Set shape so call sites can write
.padding(.horizontal, 8) without inventing a Lava-only vocabulary.
Layout is LTR today: leading maps to the left edge and trailing to
the right; a future layout-direction environment would remap at the Yoga
boundary rather than renaming these cases.
Sources/LavaUI/EdgeInsets.swift:8
Constructors
init(rawValue: UInt8)
Creates an edge set from its bits.
Sources/LavaUI/EdgeInsets.swift:13
Properties
static let all: Edge
All four edges.
Sources/LavaUI/EdgeInsets.swift:31
static let bottom: Edge
The bottom edge.
Sources/LavaUI/EdgeInsets.swift:22
static let horizontal: Edge
The leading and trailing edges.
Sources/LavaUI/EdgeInsets.swift:27
static let leading: Edge
The leading edge: left, since layout is left to right.
Sources/LavaUI/EdgeInsets.swift:20
let rawValue: UInt8
The edge bits.
Sources/LavaUI/EdgeInsets.swift:10
static let top: Edge
The top edge.
Sources/LavaUI/EdgeInsets.swift:18
static let trailing: Edge
The trailing edge: right, since layout is left to right.
Sources/LavaUI/EdgeInsets.swift:24
static let vertical: Edge
The top and bottom edges.
Sources/LavaUI/EdgeInsets.swift:29