Remove BlurView in swift
It's hard to know exactly what is going on in your code, as you've clearly posted a cut up version (the last 4 lines are part of a method somewhere, presumably).
You could do something like this to remove all UIVisualEffectView
subviews from your blurView
:
for subview in blurView.subviews {
if subview is UIVisualEffectView {
subview.removeFromSuperview()
}
}