Generic Type Method
build Block(_:) Passes a single view written as a child view through unmodified.
SDKs
iOS 13.0+ macOS 10.15+ Mac Catalyst 13.0+ tvOS 13.0+ watchOS 6.0+ Xcode 11.0+ Declaration static func buildBlock <Content >(_ content : Content) -> Content where Content : View
Discussion An example of a single view written as a child view is { Text("Hello") }
.
See Also
Building Blocks static func build Block <C0, C1, C2, C3, C4>(C0, C1, C2, C3, C4) -> Tuple View<(C0, C1, C2, C3, C4)>
static func build Block <C0, C1, C2, C3, C4, C5>(C0, C1, C2, C3, C4, C5) -> Tuple View<(C0, C1, C2, C3, C4, C5)>
static func build Block <C0, C1, C2, C3, C4, C5, C6>(C0, C1, C2, C3, C4, C5, C6) -> Tuple View<(C0, C1, C2, C3, C4, C5, C6)>
static func build Block <C0, C1, C2, C3, C4, C5, C6, C7>(C0, C1, C2, C3, C4, C5, C6, C7) -> Tuple View<(C0, C1, C2, C3, C4, C5, C6, C7)>
static func build Block <C0, C1, C2, C3, C4, C5, C6, C7, C8>(C0, C1, C2, C3, C4, C5, C6, C7, C8) -> Tuple View<(C0, C1, C2, C3, C4, C5, C6, C7, C8)>
static func build Block <C0, C1, C2, C3, C4, C5, C6, C7, C8, C9>(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) -> Tuple View<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9)>