What's New / App UI: SwiftUI, AppKit & UIKit

What's new in Charts

+3 NewiOS · macOS · tvOS · watchOS

Charts is Apple's framework for building data visualizations in SwiftUI. Chart content like marks and axes is composed declaratively from view-like building blocks.

The 27 SDK adds 3 APIs with no deprecations or removals. All three are content-composition types: EmptyView, TupleContent, and TupleContent.Body nested inside it. EmptyView covers the empty case and TupleContent groups chart content, matching the result-builder primitives already in SwiftUI.

New

3
extension

EmptyView

NewiOSmacOStvOSwatchOS
extension EmptyView : ChartContent
Declaration
extension EmptyView : ChartContent {

    /// The content and behavior of the chart content.
    nonisolated public var body: Never { get }
}
extension

TupleContent

NewiOSmacOStvOSwatchOS
extension TupleContent : ChartContent where repeat each Content : ChartContent
Declaration
extension TupleContent : ChartContent where repeat each Content : ChartContent {

    /// The content and behavior of the chart content.
    @MainActor @inlinable @preconcurrency public var body: Never { get }

    /// The type of chart content contained in the body of this instance.
    @available(macOS 27.0, iOS 27.0, tvOS 27.0, watchOS 27.0, *)
    public typealias Body = Never
}
typealias

TupleContent.Body

NewiOSmacOStvOSwatchOS
public typealias Body = Never

The type of chart content contained in the body of this instance.

No APIs match your filter.

← More in App UI: SwiftUI, AppKit & UIKit