How can I give a button in SwiftUI no glass styling
Asked on 2025-08-19
1 search
To give a button in SwiftUI no glass styling, you can avoid using the Liquid Glass effect or any gloss effect modifiers that are part of the new design updates. In the session "Build a SwiftUI app with the new design," it is mentioned that SwiftUI automatically applies a gloss effect within a capsule shape behind your content by default. To ensure your button does not have this styling, you should avoid applying any gloss or glass effect modifiers to your button.
For more detailed information on how to manage button styles in SwiftUI, you might want to refer to the session Build a SwiftUI app with the new design (14:03) where updates to standard controls, including buttons, are discussed.

Migrate your TVML app to SwiftUI
SwiftUI helps you build great apps on all Apple platforms and is the preferred toolkit for bringing your content into the living room with tvOS 18. Learn how to use SwiftUI to create familiar layouts and controls from TVMLKit, and get tips and best practices.

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.