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.