Should setting a UIVisualEffectView's effect to nil remove its visual glass effect?

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?

I noticed the same thing — the animation shown in the video doesn’t happen when using:

UIView.animate { effectView.effect = nil }

I’ve filed a bug report with Apple for this, and I’d recommend you do the same so it gets more attention.

I similarly still can't get this to work, as of Beta 7.

Does not appear to work on Beta 8 either.

This certainly sounds like a bug! Have you filed a feedback about this? Please post the FB ID (ideally attach the sample app you're using) here so we can track this, and fix it appropriately.

Thanks for confirming! I’ve filed a feedback report. My FB ID is FB19397537.

I filed too, with a sample project. Mine is FB20069803.

Note that this occurs on Seed 9, but that's not an option in the "which build" dropdown in Feedback Assistant.

FB19413975. Appears to be reproducing on Seed 9.

Should setting a UIVisualEffectView's effect to nil remove its visual glass effect?
 
 
Q