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.