One Logo Pool Ball
Charts · IOS API REFERENCE

ChartContentBuilder

struct · iOS 16.0+ · SDK 27.1

@resultBuilder struct ChartContentBuilder

A result builder that you use to compose the contents of a chart. This [Result Builder](https://docs.swift.org/swift-book/LanguageGuide/AdvancedOperators.html#ID630) combines any number of ``ChartContent`` instances into a single composite instance, including support for conditionals. You don't call the methods of the result builder directly. Instead, Swift uses them to combine the elements that you declare in any closure that has the `@ChartContentBuilder` attribute. In particular, you rely on this behavior when you declare the `content` inside a ``Chart`` initializer like ``Chart/init(content:)``.

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

8 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

ChartContentBuilder.buildBlock()

This protocol needs associated types that cannot yet cross the bridge.

ChartContentBuilder.buildBlock(_:)

This declaration needs Swift generic type arguments. (no canonical witness for C)

ChartContentBuilder.buildBlock(_:)

Swift parameter packs cannot cross the bridge.

ChartContentBuilder.buildIf(_:)

This declaration needs Swift generic type arguments. (no canonical witness for T)

ChartContentBuilder.buildEither(first:)

This declaration needs Swift generic type arguments. (no canonical witness for T1)

ChartContentBuilder.buildEither(second:)

This declaration needs Swift generic type arguments. (no canonical witness for T2)

ChartContentBuilder.buildLimitedAvailability(_:)

This protocol needs associated types that cannot yet cross the bridge.

ChartContentBuilder.buildExpression(_:)

This declaration needs Swift generic type arguments. (no canonical witness for Content)

All Charts types →