Unfortunately, you cannot change the viewing effect after creating it.
So, if you use UIVisualEffectsView as a container for searching, you will need to replace the effects view with a new one created using another effect, and move your hierarchy into a new container.
If you use UIVisualEffectsView to blur all views behind it, you can, for example, create both blurry views in your storyboard, set one of them to hidden, and change their hidden states in accordance with user settings.
source share