Latest 0.1.0
License MIT
Platforms ios 8.0
Frameworks UIKit, Foundation

License: MIT
Swift 3.1

The simplest way to add paginate (a.k.a infinite scroll) function to your table view.
All you have to do is just set your table view class in the storyboard to PagingTableView, and implement the PagingTableViewDelegate#paginate


PagingTableView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "PagingTableView"


See full example here.
To run the example project, clone the repo, and run pod install from the Example directory first.


First set your table view class in the storyboard to PagingTableView

Then implement paginate function. If isLoading is set to true, an indicator is displayed at the bottom of the table view. Otherwise, the indicator disappears and UITableView.reloadData is called.

class MainViewController: UIViewController {

  override func viewDidLoad() {
    contentTable.pagingDelegate = self



extension MainViewController: PagingTableViewDelegate {

  func paginate(_ tableView: PagingTableView, to page: Int) {
    contentTable.isLoading = true
    contentDataSource.loadData(at: page) { contents in
      self.contents.append(contentsOf: contents)
      self.contentTable.isLoading = false


See example for more information.


Name Type Description
pagingDelegate PagingTableViewDelegate Delegate pagination processing
currentPage Int Returns the current page
isLoading Bool Shows and hides the loading indicator. Reload table view data after loading
reset() Void Return page to 0 and call paginate function


InJung Chung / @mu29


PagingTableView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

    "name": "PagingTableView",
    "version": "0.1.0",
    "summary": "The simplest way to make your table view paginable",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "InJung Chung": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.0"
    "platforms": {
        "ios": "8.0"
    "source_files": "Sources",
    "frameworks": [
    "pushed_with_swift_version": "echo "3.1" > .swift-version"

Pin It on Pinterest

Share This