Contents

buildIf(_:)

Compares content in a multistatement closure, that produces an optional view that’s visible if the argument you provide evaluates to true.

Declaration

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

Parameters

  • content:

    The map builder content the expression builder operates on.

Return Value

Returns the conditional map content that meets the conditions the content builder expresses.

See Also

Conditionally building map content