I'm using FXBlur to achieve blur-effect for an underlying view. But the background color which I set is never seen while running.
I have a "Main View
" inside which there is an Image
and a Blur View
. Blur View
has a grey background.
The Image
is getting blurred but I can't see the grey color which I had set for the Blur View
. No matter what I try, I can't set the backgrund color and achieve the blur effect simultaneously.
What might be the issue? Is there any workaround?
EDITED
:
self.blurView.dynamic = NO;
self.blurView.tintColor = [UIColor grayColor];
self.blurView.contentMode = UIViewContentModeBottom;
The blurView tintColor uses additive blending, so making it grey won't have much effect.
If you want to add a grey overlay to darken your blur view, add a subview with a partially transparent grey backgroundColor inside the blurView.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With