/PullToRefresh

A simple CollectionViewController with UIRefreshControl

Primary LanguageSwiftMIT LicenseMIT

PullToRefresh

Use UIRefreshControl on UICollectionViewController.

Features

  • Support to pull to refresh
  • Support to load request after scrolling bottom
  • Create UITableViewController about loadRequestControl
  • Support Cocoapods
  • Support to request without UIRefreshControl()

Usage

  • refreshControl

refreshControl start animation and callback method:

func willRefresh()

If data that controller has refresh, controller call method:

refreshControl.endRefreshing()
  • loadRequestControl

scrolling to bottom and callback method:

func willLoadRequest()

After load request, controller call method:

loadRequestControl.endRefreshing()