buildIf(_:)
Produces an optional view for conditional statements in multi-statement closures that’s only visible when the condition evaluates to true.
Declaration
static func buildIf<Content>(_ content: Content?) -> Content? where Content : ViewProduces an optional view for conditional statements in multi-statement closures that’s only visible when the condition evaluates to true.
static func buildIf<Content>(_ content: Content?) -> Content? where Content : View