DGElasticPullToRefresh
Elastic pull to refresh compontent developed in Swift
Inspired by this Dribbble post: Pull Down to Refresh by Hoang Nguyen
Tutorial on how this bounce effect was achieved can be found here.
Requirements
- Xcode 7 or higher
- iOS 8.0 or higher (may work on previous versions, just did not test it)
- ARC
- Swift 3.0
Demo
Open and run the DGElasticPullToRefreshExample project in Xcode to see DGElasticPullToRefresh in action.
Installation
CocoaPods
Manual
Add DGElasticPullToRefresh folder into your project.
Example usage
Do not forget to remove pull to refresh on view controller deinit. It is a temporary solution.
Description
Add pull to refresh without loading view:
Add pull to refresh with loading view:
You can use built-in DGElasticPullToRefreshLoadingViewCircle or create your own by subclassing DGElasticPullToRefreshLoadingView and implementing these methods:
Remove pull to refresh:
Set auto start loading:
Change pull to refresh background color:
Change pull to refresh fill color:
Contribution
Please feel free to submit pull requests. Cannot wait to see your custom loading views for this pull to refresh.