what about GlassEffectContainer?
Asked on 06/11/2025
1 search
The GlassEffectContainer is a feature introduced by Apple to enhance the visual consistency and performance of glass effects in app design. It is used to group multiple glass elements together into a single rendering effect. This grouping is essential for achieving a consistent visual result, as glass elements cannot directly sample other glass elements. By using a GlassEffectContainer, these elements share their sampling region, which not only provides a more consistent visual appearance but also improves performance by requiring only one sampling pass for the entire group.
In the session "Build an AppKit app with the new design" at WWDC 2025, it was demonstrated how to set up a GlassEffectContainer. The container allows glass elements to fluidly join and separate, creating a liquid visual effect. This is particularly useful when you have multiple glass shapes in close proximity, as it ensures they maintain a uniform appearance as the underlying content changes.
For more details, you can refer to the session Build an AppKit app with the new design (17:30).

Build an AppKit app with the new design
Update your AppKit app to take full advantage of the new design system. We’ll dive into key changes to tab views, split views, bars, presentations, search, and controls, and show you how to use Liquid Glass in your custom UI. To get the most out of this video, we recommend first watching “Get to know the new design system” for general design guidance.

Build a SwiftUI app with the new design
Explore the ways Liquid Glass transforms the look and feel of your app. Discover how this stunning new material enhances toolbars, controls, and app structures across platforms, providing delightful interactions and seamlessly integrating your app with the system. Learn how to adopt new APIs that can help you make the most of Liquid Glass.

Build a UIKit app with the new design
Update your UIKit app to take full advantage of the new design system. We’ll dive into key changes to tab views, split views, bars, presentations, search, and controls, and show you how to use Liquid Glass in your custom UI. To get the most out of this video, we recommend first watching “Get to know the new design system” for general design guidance.