What’s new in Swift Charts in iOS 18?
Asked on 07/30/2024
1 search
In iOS 18, Swift Charts introduces several new features and improvements:
-
Function Plots: Swift Charts now allows you to visualize mathematical functions in your apps. This includes:
- Line Plot: For visualizing a single function.
- Area Plot: To fill in the area between two functions.
- Parametric Functions: You can graph parametric functions where x and y are defined in terms of a third variable, t.
- Piecewise Functions: Swift Charts can handle piecewise functions, including cases where certain values in the domain do not have an output.
-
Vectorized Plotting APIs: These new APIs support visualizing larger datasets more efficiently, making your charts more performant.
-
Accessibility: Swift Charts ensures that data visualizations are accessible by default, including support for VoiceOver to describe the chart.
For a detailed walkthrough of these new features, you can watch the session Swift Charts: Vectorized and function plots starting at 00:12:37.

Swift Charts: Vectorized and function plots
The plot thickens! Learn how to render beautiful charts representing math functions and extensive datasets using function and vectorized plots in your app. Whether you’re looking to display functions common in aerodynamics, magnetism, and higher order field theory, or create large interactive heat maps, Swift Charts has you covered.

What’s new in SwiftUI
Learn how you can use SwiftUI to build great apps for any Apple platform. Explore a fresh new look and feel for tabs and documents on iPadOS. Improve your window management with new windowing APIs, and gain more control over immersive spaces and volumes in your visionOS apps. We’ll also take you through other exciting refinements that help you make expressive charts, customize and layout text, and so much more.

Get started with HealthKit in visionOS
Discover how to use HealthKit to create experiences that take full advantage of the spatial canvas. Learn the capabilities of HealthKit on the platform, find out how to bring an existing iPadOS app to visionOS, and explore the special considerations governing HealthKit during a Guest User session. You’ll also learn ways to use SwiftUI, Swift Charts, and Swift concurrency to craft innovative experiences with HealthKit.