测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可 | MIT |
发布上次发布 | 2017年2月 |
SwiftSwift 版本 | 3.0 |
SPM支持 SPM | ✓ |
由 hryk224 维护。
使用 UICollectionView
实现无限水平滚动
import InfiniteCollectionView
@IBOutlet weak var collectionView: InfiniteCollectionView!
collectionView.infiniteDataSource = XXX
collectionView.infiniteDelegate = XXX
// protocol
func number(ofItems collectionView: UICollectionView) -> Int
func collectionView(_ collectionView: UICollectionView, dequeueForItemAt dequeueIndexPath: IndexPath, cellForItemAt usableIndexPath: IndexPath) -> UICollectionViewCell
// optional
func infiniteCollectionView(_ collectionView: UICollectionView, didSelectItemAt usableIndexPath: IndexPath)
func scrollView(_ scrollView: UIScrollView, pageIndex: Int)
该项目遵循 MIT 许可协议。有关详细信息,请参阅 LICENSE 文件。