Home

Awesome

<img src="https://user-images.githubusercontent.com/5707132/47400079-b0f8ac80-d776-11e8-9d26-9d0e26a2d532.png" alt="LOGO" width="300" />

Carthage compatible Version License Platform

Infinite paging, Smart auto layout, Interface of similar to UIKit.

Appetize's Demo

Demo

Requirements

How to Install PagingView

Cocoapods

Add the following to your Podfile:

pod "PagingView"

Carthage

Add the following to your Cartfile:

github "KyoheiG3/PagingView"

Usage

PagingView Variable

weak var dataSource: PagingViewDataSource?
var pagingMargin: UInt
var pagingInset: UInt
var infinite: Bool

PagingView Function

func dequeueReusableCellWithReuseIdentifier(identifier: String) -> PagingView.PagingViewCell
func registerNib(nib: UINib?, forCellWithReuseIdentifier identifier: String)
func registerClass<T : PagingView.PagingViewCell>(viewClass: T.Type, forCellWithReuseIdentifier identifier: String)
func reloadData()
func invalidateLayout()
func numberOfSections() -> Int
func numberOfItemsInSection(section: Int) -> Int
func scrollToPosition(position: PagingView.PagingView.Position, indexPath: IndexPath? = default, animated: Bool = default)
func configureAtPosition(position: PagingView.PagingView.Position, toIndexPath: IndexPath? = default)

PagingViewDataSource Function

func pagingView(pagingView: PagingView.PagingView, numberOfItemsInSection section: Int) -> Int
func pagingView(pagingView: PagingView.PagingView, cellForItemAtIndexPath indexPath: IndexPath) -> PagingView.PagingViewCell
optional func numberOfSectionsInPagingView(pagingView: PagingView.PagingView) -> Int
optional func indexPathOfStartingInPagingView(pagingView: PagingView.PagingView) -> IndexPath?

PagingViewDelegate Function

optional func pagingView(pagingView: PagingView.PagingView, willDisplayCell cell: PagingView.PagingViewCell, forItemAtIndexPath indexPath: IndexPath)
optional func pagingView(pagingView: PagingView.PagingView, didEndDisplayingCell cell: PagingView.PagingViewCell, forItemAtIndexPath indexPath: IndexPath)

PagingViewCell Function

func prepareForReuse()

LICENSE

Under the MIT license. See LICENSE file for details.