KyoheiG3/DynamicBlurView

Black boxes when scrolling collection view.

francocorreasosa opened this issue · 8 comments

Hello! I'm trying to add this lib to an app where we have an UICollectionView and when I scroll through the cells, some of them turn into a black box for a fraction of the second. And also some of the blurred images go to the wrong cell.

The problem happens when I scroll and change the blurView alpha to 0. (that change is done automatically on scrolling outside a certain offset)

config:

        blurView.frame = textLabel.bounds
        blurView.drawsAsynchronously = true
        blurView.trackingMode = .tracking
        blurView.quality = .low
        blurView.isDeepRendering = true
        blurView.backgroundColor = .white
        blurView.iterations = 2

Although I tried it using Example, any problem didn't happen.
If you want to change the radius of blur with scroll offset, try to change blurRatio of view.

zuil7 commented

Hi Good day,

I tried using your app. I notice that it converts white color after screenshot to black. Is there a way to not convert white to black after screenshot. Please see attachment

Thanks

screen shot 2018-06-07 at 9 48 26 am

screen shot 2018-06-07 at 9 48 48 am

Hi @zuil7
Could you set color for backgroundColor of the view?
Thanks.

zuil7 commented

Hi,

still the same result i can see the black one. please see screenshot

screen shot 2018-06-08 at 11 13 06 am

screen shot 2018-06-08 at 11 13 17 am

What's color did you set?
If you set .clear or nil, the result becomes to be black.

zuil7 commented

hi i set it to white.

Here's a zip file of sample project

DynamicTableBlur.zip

I tried the sample project.
2018-06-08 17 51 42

It has to change backgroundColor of Content View that is on UITableViewCell.
2018-06-08 17 53 53

zuil7 commented

Thanks for this. Yeah now it works. 👍