i have a view. on its, layer i have a videolayer. now i want to blur the video layer, which is done using blureffect and visualeffect view , but i want to have another view on top of the visual efffect which should not be affected by the blur . what should i do?
code:
let blurEffect = UIBlurEffect()
let blurEffectView = UIVisualEffectView()
blurEffectView.frame = self.view.bounds
view.addSubview(blurEffectView)
blurEffectView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
blurEffectView.contentView.addSubview(focusview)
blurEffectView.effect=blurEffect
focusview is a uiview and is the rectangle. how can i make it clear?
This is how my app looks like. I want the white rectangle to be clear.