diff --git a/Sources/FSPagerCollectionView.swift b/Sources/FSPagerCollectionView.swift index 44d191d..d5a5d64 100644 --- a/Sources/FSPagerCollectionView.swift +++ b/Sources/FSPagerCollectionView.swift @@ -1,5 +1,5 @@ // -// FSPagerViewCollectionView.swift +// FSPagerCollectionView.swift // FSPagerView // // Created by Wenchao Ding on 24/12/2016. @@ -10,7 +10,7 @@ import UIKit -class FSPagerViewCollectionView: UICollectionView { +class FSPagerCollectionView: UICollectionView { fileprivate var pagerView: FSPagerView? { return self.superview?.superview as? FSPagerView diff --git a/Sources/FSPagerView.swift b/Sources/FSPagerView.swift index 831b948..0dd12da 100644 --- a/Sources/FSPagerView.swift +++ b/Sources/FSPagerView.swift @@ -219,7 +219,7 @@ open class FSPagerView: UIView,UICollectionViewDataSource,UICollectionViewDelega // MARK: - Private properties internal weak var collectionViewLayout: FSPagerViewLayout! - internal weak var collectionView: FSPagerViewCollectionView! + internal weak var collectionView: FSPagerCollectionView! internal weak var contentView: UIView! internal var timer: Timer? @@ -557,7 +557,7 @@ open class FSPagerView: UIView,UICollectionViewDataSource,UICollectionViewDelega // UICollectionView let collectionViewLayout = FSPagerViewLayout() - let collectionView = FSPagerViewCollectionView(frame: CGRect.zero, collectionViewLayout: collectionViewLayout) + let collectionView = FSPagerCollectionView(frame: CGRect.zero, collectionViewLayout: collectionViewLayout) collectionView.dataSource = self collectionView.delegate = self collectionView.backgroundColor = UIColor.clear