Is there a way to disable the default glass styling on a UIButton?
Asked on 2025-09-09
1 search
To disable the default glass styling on a UIButton, you can set the effect property to nil
. This approach ensures that the glass effect is removed with the appropriate animation, rather than simply adjusting the alpha value. This method is discussed in the session Build a UIKit app with the new design, where it is recommended to prefer setting the effect property over the alpha to ensure proper animation of the glass effect.

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.

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.

Meet Liquid Glass
Liquid Glass unifies Apple platform design language while providing a more dynamic and expressive user experience. Get to know the design principles of Liquid Glass, explore its core optical and physical properties, and learn where to use it and why.