Swift Charts now runs in the browser.

Write Chart { BarMark(x: .value(...), y: .value(...)) } in MiniSwift Studio and watch it render live โ€” bars, lines, scatter, pie, multi-series with legends. No Mac. No Xcode. No server.

The wild part: it's a Swift compiler hand-written in C โ†’ WebAssembly, and the charts are drawn on a <canvas> straight from the compiled UI tree. 100% client-side.

Try it https://miniswift.run/studio/

#Swift #SwiftUI #SwiftCharts #WebAssembly

Build a UV-index-style area chart inspired by iOS Weather. Uses ๐ด๐‘Ÿ๐‘’๐‘Ž๐‘€๐‘Ž๐‘Ÿ๐‘˜ and ๐ฟ๐‘–๐‘›๐‘’๐‘€๐‘Ž๐‘Ÿ๐‘˜ with linear gradients, cardinal interpolation, and a custom ๐‘…๐‘’๐‘๐‘ก๐‘Ž๐‘›๐‘”๐‘™๐‘’๐‘€๐‘Ž๐‘Ÿ๐‘˜ mask for a dimming layer.

๐Ÿ”—: https://nilcoalescing.com/blog/AreaChartWithADimmingLayer/ by Natalia Panferova (@natpanferova)

#SwiftUI #SwiftCharts #iOSDev

Area chart with a dimming layer up to the current point in time

Create a chart with the Swift Charts framework to show UV index throughout the day inspired by the iOS Weather app that dims the area up to the current time.

Nil Coalescing

And here is the blog post with some background information on the app.

https://smork.info/blog/posts/spoons-v1-0-released/

#ios #swift #swiftui #swiftdata #swiftcharts

Spoons v1.0 released

Stuff about iOS development, Linux and more

Benjaminโ€™s Blog

I'm adding a new chart and hit a strange Swift Charts issue.

If the Y-axis data is all zeros then the Y-axis gets flipped!

Specifying a chartYScale seems to be the solution.

.chartYScale(domain: 0...(yValues.last ?? 1), type: .linear)

#SwiftUI #SwiftCharts

Just published a deep dive on how I built interactive timelines in Viatza using Swift Charts โ€” medicine bars, symptom lanes, tap + drag selection, and a few SwiftUI surprises along the way.

If youโ€™re working with charts or health data, hope it helps ๐ŸŒฟ
Comments welcome.

#SwiftUI #SwiftCharts #iOSDev #IndieDev #BuildInPublic #Viatza

https://aigarden.uk/2321

Swift Charts: Interactive Medicine & Symptom Timelines in viatza

Learn how Viatza uses Swift Charts to build interactive medicine and symptom timelines with custom gestures, range selection, and clear Health-style visuals.

AI Garden

I wrote a blog post about the improvements I made to @PleaseDontRain based on feedback from my WWDC accessibility lab.

I didn't expect it to involve time zones! โฐ

https://chriswu.com/posts/swiftui/a11ywwdc25/

#accessibility #SwiftUI #SwiftCharts

Accessibility Improvements From My WWDC25 Lab

One of my favorite WWDC experiences.

Chris Wu
Beyond Linear: Using MeshGradient in Swift Charts

With iOS 18, Apple introduced the powerful MeshGradient API in SwiftUI. It allows for the definition of gradients using 2D coordinates.

I just wrote an addendum to the blog post I wrote recently about struggling to find an answer to a Swift Charts problem I was having.

It was a night and day difference with the next issue I encountered.

#SwiftCharts

Swift Charts lets you manually choose what color is used for each category in the legend but it doesn't appear that you can manually choose what shapes appear in it.

I made my own legend to use when differentiate without color is active.

I think that I'm done with this new feature!

#accessibility #a11y #SwiftCharts #SwiftUI

I created an example in my accessibility settings for @PleaseDontRain to show how I'm differentiating without color for my bar charts.

Really happy with how this turned out!

#accessibility #a11y #gaad #SwiftUI #SwiftCharts