SFFocusViewLayout icon indicating copy to clipboard operation
SFFocusViewLayout copied to clipboard

Overlapping cells due to iOS 10's pre-fetching

Open cm-hugog opened this issue 9 years ago • 2 comments

With the new iOS 10's pre-fetching strategy the layout is overlapping cells

cm-hugog avatar Sep 25 '16 17:09 cm-hugog

I have same issue... Any solution yet?

git-hwa avatar Oct 03 '16 15:10 git-hwa

OK, I found a solution!

if #available(iOS 10.0, *) {
            collectionView?.isPrefetchingEnabled = false
        } else {
            // Fallback on earlier versions
        }

Copy this code and paste into your UICollectionViewController ViewDidLoad() method.

bariscck avatar Oct 08 '16 22:10 bariscck