home.social

#swiftcharts — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #swiftcharts, aggregated by home.social.

fetched live
  1. 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.

    🔗: nilcoalescing.com/blog/AreaCha by Natalia Panferova (@natpanferova)

    #SwiftUI #SwiftCharts #iOSDev

  2. 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

  3. 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! ⏰

    chriswu.com/posts/swiftui/a11y

    #accessibility #SwiftUI #SwiftCharts

  4. 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

  5. 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

  6. 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

  7. 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.

    #accessibility #a11y #SwiftCharts #SwiftUI

  8. 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.

    #accessibility #a11y #SwiftCharts

  9. 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.

    #accessibility #a11y #SwiftCharts #SwiftUI

  10. 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!

    chriswu.com/posts/swiftui/char

    #SwiftUI #SwiftCharts

  11. I’m adding charts to my spoon management app. Still work in progress.

    #spoon #pacing

    (No third party lib, no #SwiftCharts, no #SwiftUI)

  12. 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. 🥹

    #WeatherKit #SwiftCharts

  13. 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 😄

    #iOS #AppStore #IndieDev

  14. #swiftcharts machen interaktive Charts wirklich einfach ☺️ #iOSDev

  15. 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.

    #SwiftUI #SwiftCharts #accessibility #a11y #VoiceOver

  16. 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.

    #PleaseDontRain #SwiftUI #SwiftCharts

  17. 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

    #accessibility #a11y #VoiceOver #SwiftUI #SwiftCharts

  18. 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

    #accessibility #a11y #VoiceOver #SwiftUI #SwiftCharts

  19. 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

    #accessibility #a11y #SwiftUI #SwiftCharts