buildIf(_:)
Builds a partial result that’s conditionally present.
Declaration
static func buildIf<T>(_ content: T?) -> T? where T : ChartContentParameters
- 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.