Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

Using .glassEffect in Charts

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?

Answered by DTS Engineer in 843607022

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.

Hi @antonmedstorta

Am I missing anything? Maybe it's just not advisable or necessary to use glass effects within Charts?

Adopting Liquid Glass goes over some best practices for Liquid Glass effects.

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.

Please file an enhancement request and include your use case. Post the FB number here once you file the request.

Accepted Answer

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.

Adopting Liquid Glass goes over some best practices for Liquid Glass effects. Please file an enhancement request and include your use case. Post the FB number here once you file the request.

Thanks! I have watched the session, and I'll have a think about if over the next couple of weeks. If it feels like it makes sense I'll make sure to file an enhancement request. Still figuring out where to best take advantage of .glassEffect.

Generally speaking, Liquid Glass is not a part of Swift Charts.

Thank you very much for the clarification! I suspected that would be the case, but still wanted to double check.

Using .glassEffect in Charts
 
 
Q