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
@ios_newsletter_snapp All the blog posts about Apple Charts are amazing @natpanferova