Hi,
I was wondering if it's possible (and advisable) to use the new glass effects available in iOS 26 in Swift Charts?
For example, in a chart like the one in the image I've attached to this post, I was looking to try adding a .glassEffect
modifier to the BarMarks
to see how that would look and feel.
However, it seems it's not available directly on the BarMark
(ChartContent)
type, and I'm having trouble adding it in other ways too, such as using in on the types I supply to modifiers like foregroundStyle
or clipShape
.
Am I missing anything? Maybe it's just not advisable or necessary to use glass effects within Charts?
Generally speaking, Liquid Glass is not a part of Swift Charts. For recommendations about using Liquid Glass I suggest reviewing the WWDC25 sessions about Liquid Glass. They discuss many considerations about how and where to employ the new Liquid Glass GUI features.