How do I make text appear on the topLeading toolbar without it showing the glass button effect in SwiftUI?
Asked on 06/11/2025
1 search
To make text appear on the topLeading
toolbar in SwiftUI without showing the glass button effect, you can use the backgroundVisibility
modifier to separate the item into its own group without a background. This approach is mentioned in the session "Build a SwiftUI app with the new design" where it discusses how to manage toolbar items and their visual effects.
Here's a brief explanation based on the session:
- Background Visibility Modifier: Apply the
backgroundVisibility
modifier to your toolbar item to ensure it doesn't inherit the glass effect, which can make it look like a button. This modifier allows you to separate an item into its own group without a background, thus avoiding the glass effect.
For more detailed guidance, you can refer to the session Build a SwiftUI app with the new design (08:46) where it discusses toolbars and their customization.

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 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 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.