Contents

buildIf(_:)

Creates a row result for conditional statements.

Declaration

static func buildIf<C>(_ content: C?) -> C? where Value == C.TableRowValue, C : TableRowContent

Discussion

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

See Also

Building a row from conditionals