PullToRefreshSwift
iOS Simple Cool PullToRefresh Library. It is written in pure swift.
Installation
CocoaPods
pod 'PullToRefreshSwift'
Manually Add the following files to your project. pulltorefresharrow.png PullToRefreshView.swift PullToRefreshConst.swift UIScrollViewExtension.swift
Usage
Setup
In your UIViewController Including UITableView, UICollectionView, UIScrollView:
You can use PullToRefreshOption class at addPullToRefresh func option parameter:
If you want to fixed pulltoRefreshView, please implement scrollViewDidScroll.
If you want to use the custom const, please change the PullToRefreshConst class.
If you want to use the custom option, please change the PullToRefreshOption class.
You can use this class at addPullToRefresh func option parameter.
Requirements
Requires Swift3.0 and iOS 8.0 and ARC.
If you are developing in the Swift1.1 ~ 2.3, please use branch of Swift1.1 ~ Swift2.3.
Features
- Highly customizable
- Complete example
- Refactoring