In the WWDC 2025 session "Build a UIKit app with the with the new design", at the 23:22 mark, the presenter says:
And finally, when you no longer need the glass on screen animate it out by setting the effect to nil.
The video shows a UIVisualEffectView
whose effect
is set to a UIGlassEffect
animating away as its effect
is set to nil
. But when I do this in my app (or a sample app), setting effect
to nil
does not remove the glass appearance. Is this expected? Is the video out of date? Or is this a bug?