enum View3DBuilder
Swift
@resultBuilder enum View3DBuilder
Builds the content of a Scene3D, ForEach3D or SpatialGroup3D from
3D views, with if, if/else and for supported.
Sources/LavaUI/Spatial.swift:517
Methods
static func buildArray(_ components: [[SpatialElement]]) -> [SpatialElement]
A for loop: every iteration's elements, in order.
Sources/LavaUI/Spatial.swift:535
static func buildBlock(_ components: [SpatialElement]...) -> [SpatialElement]
Joins the elements of each statement, in order.
Sources/LavaUI/Spatial.swift:523
static func buildEither(first: [SpatialElement]) -> [SpatialElement]
The if branch of an if/else.
Sources/LavaUI/Spatial.swift:531
static func buildEither(second: [SpatialElement]) -> [SpatialElement]
The else branch of an if/else.
Sources/LavaUI/Spatial.swift:533
static func buildExpression<V>(_ value: V) -> [SpatialElement] where V : View3D
Flattens one 3D view into its elements.
Sources/LavaUI/Spatial.swift:519
static func buildOptional(_ component: [SpatialElement]?) -> [SpatialElement]
An if without else: its elements, or none.
Sources/LavaUI/Spatial.swift:527