LavaUI docs GitHub

struct ForEach3D

Swift

struct ForEach3D<Data, ID, Content> where Data : RandomAccessCollection, ID : Hashable, Content : View3D

One group of 3D views per element of a collection.

Sources/LavaUI/Spatial.swift:749

Constructors

init(_ data: Data, id: KeyPath<Data.Element, ID>, @View3DBuilder content: @escaping (Data.Element) -> [SpatialElement]) where Content == SpatialGroup3D

Builds one group of 3D views per element of data.

Sources/LavaUI/Spatial.swift:758

Properties

var content: (Data.Element) -> Content

Builds the group for one element.

Sources/LavaUI/Spatial.swift:755

var data: Data

The elements, one group each.

Sources/LavaUI/Spatial.swift:751

var id: KeyPath<Data.Element, ID>

The key path identifying each element.

Sources/LavaUI/Spatial.swift:753

Methods

func spatialElements() -> [SpatialElement]

Not documented.

Sources/LavaUI/Spatial.swift:766