Black boxes when scrolling collection view.
francocorreasosa opened this issue · 8 comments
francocorreasosa commented
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
KyoheiG3 commented
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
zuil7 commented
KyoheiG3 commented
What's color did you set?
If you set .clear
or nil
, the result becomes to be black.
zuil7 commented
KyoheiG3 commented
zuil7 commented
Thanks for this. Yeah now it works. 👍