Contents

buildIf(_:)

Builds a partial result that’s conditionally present.

Declaration

static func buildIf<T>(_ content: T?) -> T? where T : ChartContent

Parameters

  • content:

    The content to use if the condition is true.

Discussion

This method provides support for if statements. It produces optional chart content that is visible only when the condition evaluates to true.

See Also

Building conditionally