#swiftcharts — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #swiftcharts, aggregated by home.social.
-
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)
-
And here is the blog post with some background information on the app.
-
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)
-
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! ⏰
-
Beyond Linear: Using MeshGradient in Swift Charts
https://www.sgade.de/blog/2025-05-26-meshgradient-in-swift-charts/
-
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.
-
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!
-
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!
-
I've done some more experimenting and now I'm leaning towards tiny basic shapes above each bar instead of using letters to differentiate without color.
The legend hasn't been addressed yet.
-
Spent some time experimenting with @bas and we couldn't get visual patterns to appear in bars via Swift Charts to differentiate without color.
I filed feedback FB17599628 as a suggestion.
-
With the announcement of App Store Accessibility Nutrition Labels I just realized that my precipitation charts would fail the “Differentiate Without Color Alone” label.
With a LineMark Swift Charts lets you change the plot shape used with each line. But what should you do for a BarChart?
I don’t have room to add an SF Symbol as an annotation on top of each bar, but a letter would seem to work.
-
I wrote a blog post about a Swift Charts issue that's been bothering me for the longest time and how I finally found a solution for it.
Hoping this saves someone some time!
-
I’m adding charts to my spoon management app. Still work in progress.
(No third party lib, no #SwiftCharts, no #SwiftUI)
-
ShellHistory V3 Beta is out on TestFlight https://testflight.apple.com/join/dtKUakmf #macos #zsh #bash #fishshell #testflight #swiftui #swiftcharts #notebooks #macapps
-
I've got a theory that WeatherKit was enhanced for iOS 17 users with the recent additions for iOS 18 that we're now testing.
I'm adding some new features to the iOS 17 version of Please Don't Rain and just realized that I'm seeing sleet on my precipitation chart. I have NEVER seen that before. It's only been rain and snow returned (and I have looked at a LOT of forecasts).
I felt like a proud papa watching his kid handle a new situation appropriately. 🥹
-
using basic #swiftcharts for instance activity stats in #Fedicat
-
Now, this is the first version of the app, I have tons of ideas to improve it but I wanted to get it in people's hands and see what people like, what they want, and how it's used 🙂
On the technical side, the app is entirely built in #SwiftUI (what did you expect?), and leverages #CoreLocation, #MapKit, #WeatherKit and a little bit of #SwiftCharts.
This app is the reason I filed and share many feedback related to these frameworks lately 😄
-
#swiftcharts machen interaktive Charts wirklich einfach ☺️ #iOSDev
-
VoiceOver question:
Should I be able to use .accessibilityLabel and .accessibilityValue with a RuleMark in Swift Charts?
I'm having to create an invisible PointMark to get around the fact that I can't seem to.
-
I liked the segmented Picker that I added to my precipitation chart so much that I used one to create a new "feels like" variation of the temperature chart.
-
But looks what happens with 24 entries and VoiceOver grouping entries together. VoiceOver is just saying "symbol" as if the SF Symbol was not there at all.
🧵 3/3
-
Here's an example with a small amount of data. You'll notice that VoiceOver is saying "symbol heavy rain", which is what is expected.
🧵 2/3
-
Wow did I spot an obscure issue with VoiceOver. Took me quite a while to nail down what was happening. I thought I was doing something wrong.
VoiceOver will normally read an appropriate description of an SF Symbol.
I realized that if there is a small amount of data VO reads the description for the symbol in a chart.
However, if there is much more data and values are grouped together VO completely ignores the symbol.
🧵 1/3
Filed FB13555954