From fa7b98e970587a642fd23a141ed9aa8256d2227d Mon Sep 17 00:00:00 2001 From: WenchaoD Date: Tue, 18 Apr 2017 16:14:56 +0800 Subject: [PATCH] Fix a prefetching issue --- Sources/FSPagerCollectionView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/FSPagerCollectionView.swift b/Sources/FSPagerCollectionView.swift index 780733e..04bb1db 100644 --- a/Sources/FSPagerCollectionView.swift +++ b/Sources/FSPagerCollectionView.swift @@ -55,6 +55,9 @@ class FSPagerViewCollectionView: UICollectionView { self.decelerationRate = UIScrollViewDecelerationRateFast self.showsVerticalScrollIndicator = false self.showsHorizontalScrollIndicator = false + if #available(iOS 10.0, *) { + self.isPrefetchingEnabled = false + } #if !os(tvOS) self.scrollsToTop = false self.isPagingEnabled = false