Is there a way to set UIBlurEffect black and white in Swift?

I have view, called componentsView, that imposes mkmapview. I thought it would be great for this view to be transparent with a blur effect. Therefore, in my method, viewDidLoadI typed:

let blur = UIBlurEffect(style: UIBlurEffectStyle.Light)
let blurView = UIVisualEffectView(effect: blur)
blurView.frame = self.view.bounds
blurView.autoresizingMask = [.FlexibleWidth, .FlexibleHeight]
componentsView.insertSubview(blurView, atIndex: 0)

and it works, it blurs the map behind it. But the map is still colorful - is there any way to make it black and white? currently my panel has a clear color, and I tried to set the hue color to black, but that didn't work ...

+4
source share

All Articles