Generic Type Method

buildIf(_:)

Provides support for “if” statements in multi-statement closures, producing an optional view that is visible only when the condition evaluates to true.

Declaration

static func buildIf<Content>(_ content: Content?) -> Content? where Content : View