All Projects → masonlamy → Infinite Uicollectionview

masonlamy / Infinite Uicollectionview

Licence: mit
Make a UICollectionView infinitely scrolling by looping through content

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Infinite Uicollectionview

FadingEdgesCollectionView
A UICollectionView that fades it's edges to hint about more content
Stars: ✭ 82 (+0%)
Mutual labels:  uicollectionview, scrollview
Hfswipeview
Infinite Swipe View for iOS written in Swift
Stars: ✭ 89 (+8.54%)
Mutual labels:  scrollview, infinite
Loopingviewpager
A ViewPager and PagerAdapter combination that support auto scroll, infinite loop and page indicators.
Stars: ✭ 310 (+278.05%)
Mutual labels:  loop, infinite
Infinitecollectionview
Infinite horizontal scrolling using UICollectionView.
Stars: ✭ 218 (+165.85%)
Mutual labels:  uicollectionview, infinite
Tysnapshotscroll
一句代码保存截图,将 UIScrollView UITableView UICollectionView UIWebView WKWebView 网页 保存 为 长图 查看。Save the scroll view page as an image,support UIScrollView,UITableView,UICollectionView,UIWebView,WKWebView.(Support iOS13)
Stars: ✭ 709 (+764.63%)
Mutual labels:  uicollectionview, scrollview
Allkit
🛠 Async List Layout Kit
Stars: ✭ 40 (-51.22%)
Mutual labels:  uicollectionview
Expandable Collection View Kit
🗂 Expandable, hierarchical, flexible, declarative UICollectionView with diffable data sources & SwiftUI-like tree items builder [Swift 5.1, iOS & iPadOS 13].
Stars: ✭ 69 (-15.85%)
Mutual labels:  uicollectionview
Swiftysound
SwiftySound is a simple library that lets you play sounds with a single line of code.
Stars: ✭ 995 (+1113.41%)
Mutual labels:  loop
Centeredcollectionview
A lightweight UICollectionViewLayout that 'pages' and centers its cells 🎡 written in Swift
Stars: ✭ 965 (+1076.83%)
Mutual labels:  uicollectionview
Bubblecollectionviewlayout
Create bubble layout of UICollectionView using custom layout
Stars: ✭ 79 (-3.66%)
Mutual labels:  uicollectionview
Drcollectionviewtablelayout Ios
UICollectionView 2d-table / grid / spreadsheet layout
Stars: ✭ 74 (-9.76%)
Mutual labels:  uicollectionview
Hybridpagekit
A high-performance、high-extensibility、easy integration framework for Hybrid content page. Support most content page types of News App.
Stars: ✭ 1,101 (+1242.68%)
Mutual labels:  scrollview
Bentools Etl
PHP ETL (Extract / Transform / Load) library with SOLID principles + almost no dependency.
Stars: ✭ 45 (-45.12%)
Mutual labels:  loop
Shazam
A pure-Swift library for nested display of horizontal and vertical scrolling views
Stars: ✭ 69 (-15.85%)
Mutual labels:  scrollview
Ssplaceholdertableview
SSPlaceholderTableView is Placeholder Library for different different state wise placeHolder for UITableView/UICollectionView. Check https://www.cocoacontrols.com/controls/ssplaceholdertableview
Stars: ✭ 39 (-52.44%)
Mutual labels:  uicollectionview
Collectionviewwithpaging Simplerexample
A simple example of how to build a horizontal UICollectionView with peeking pages.
Stars: ✭ 77 (-6.1%)
Mutual labels:  uicollectionview
Tangramkit
TangramKit is a powerful iOS UI framework implemented by Swift. It integrates the functions with Android layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,LayoutSizeClass to build your App 自动布局 UIView UITableView UICollectionView
Stars: ✭ 984 (+1100%)
Mutual labels:  uicollectionview
Bmlongpressdragcellcollectionview
🎉 🎉 🎉 🎉 🎉 让你轻松实现类似支付宝的拖拽重排功能, 支持各种自定义操作。
Stars: ✭ 1,090 (+1229.27%)
Mutual labels:  uicollectionview
Mao Rn Android Kit
⚙️ Android Native (ui components and modules) wrap in React Native
Stars: ✭ 74 (-9.76%)
Mutual labels:  scrollview
Ynpageviewcontroller
特斯拉组件、QQ联系人布局、多页面嵌套滚动、悬停效果、美团、淘宝、京东、微博、腾讯新闻、网易新闻、今日头条等标题滚动视图
Stars: ✭ 1,067 (+1201.22%)
Mutual labels:  scrollview

infinite-uicollectionview

This repository aims to provide a simple way of implementing an infinite collection view.
By infinite, we mean that as soon as a user reaches the boundary of the collection view content, the content will then loop back to the start in a circular manner.

preview

Using InfiniteCollectionView

In order to use InfiniteCollectionView:

  1. Make it the custom subclass of a UICollectionView component in your storyboard.
  2. Set the infiniteDataSource (not the standard UICollectionView dataSource) and implement the required functions.

InfiniteCollectionViewDataSource

The custom datasource is very similar to the standard UICollectionViewDataSource. There are 3 functions to implement:

func cellForItemAtIndexPath(collectionView: UICollectionView, dequeueIndexPath: NSIndexPath, usableIndexPath: NSIndexPath) -> UICollectionViewCell

This function operates exactly the same as the regular cellForItemAtIndexPath, however, you should use dequeueIndexPath for dequeuing your cell and usableIndexPath for your content.

func numberOfItems(collectionView: UICollectionView) -> Int

As with the standard UICollectionViewDatasource, simply return the number of cells of content you have.

Current Support

You can use InfiniteCollectionView to scroll infinitely in a horizontal direction with equally sized cells.

Future

Improvements will include vertical scroll support and support for various cell sizes.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].