I want to add a glass effect to a fullScreenCover. How to in Swiftui?
Asked on 2025-09-12
1 search
To add a glass effect to a fullScreenCover
in SwiftUI, you can use the new Liquid Glass material introduced in iOS 26. Here's a general approach based on the information from the WWDC sessions:
-
Declare a Local Namespace: Start by declaring a local namespace to manage the glass effect elements.
-
Use the Glass Effect Modifier: Apply the glass effect using the
glossEffect
modifier. This modifier allows you to add a glass-like appearance to your views. -
Customize the Effect: You can customize the shape of the glass effect by providing a shape to the modifier. For interactive elements, you can add the
interactive
modifier to make the glass react to user interactions. -
Apply to FullScreenCover: When using
fullScreenCover
, ensure that the background or the content of the cover uses the glass effect to achieve the desired visual style.
For more detailed guidance, you can refer to the session Build a SwiftUI app with the new design (17:57) where Liquid Glass effects are discussed.

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.

Create custom visual effects with SwiftUI
Discover how to create stunning visual effects in SwiftUI. Learn to build unique scroll effects, rich color treatments, and custom transitions. We’ll also explore advanced graphic effects using Metal shaders and custom text rendering.

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.