unboxme / Blurberry

Transparent blur using UIVisualEffectView without subclassing
MIT License
56 stars 7 forks source link

Blur doesn't work on tinted color #1

Closed nadimalam closed 3 years ago

nadimalam commented 4 years ago

Hey,

Firstly, thanks for this library, i was earlier having issues on ios14 and the default blur stopped working for me and i couldn't find a solution to fix it.

Thankfully, with your library it works fine with clear color in the tint: blurEffectView.blur.tintColor = .clear

However, if i change the tint color to any other color i loose the blur and it just gives me a solid background, like screenshot below. Any idea why that could be happening?

IMG_8EEA77BA2622-1

unboxme commented 4 years ago

@nadimalam Thank you for the report. I'll fix it next week.

unboxme commented 4 years ago

@nadimalam Sorry for the late reply. I couldn't reproduce the issue. Could you please attach source code or test project?

It seems to be you set a blur like blurVuew.blur.tintColor = .black, but the right way is to set a color with alpha component such as blurVuew.blur.tintColor = UIColor.black.withAlphaComponent(0.25).

unboxme commented 3 years ago

Closed due to inactivity and lack of issue details.