LazyHStack
struct · iOS 14.0+ · SDK 27.1
nonisolated struct LazyHStack<Content> where Content : ViewA view that arranges its children in a line that grows horizontally, creating items only as needed. The stack is "lazy," in that the stack view doesn't create items until it needs to render them onscreen. In the following example, a ``ScrollView`` contains a `LazyHStack` that consists of a horizontal row of text views. The stack aligns to the top of the scroll view and uses 10-point spacing between each text view. ScrollView(.horizontal) { LazyHStack(alignment: .top, spacing: 10) { ForEach(1...100, id: \.self) { Text("Column \($0)") } } }
Members (0)
This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
LazyHStack.init(alignment:spacing:pinnedViews:content:)
callback cannot propagate synchronous failure