HeaderFooterRefreshView

CI Status Version License Platform

Requirements

  • iOS 10.0+
  • Swift 5.0+

Installation

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

pod 'HeaderFooterRefreshView'

Example

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

Header (Manual)

let headerView = scrollView.header.setManualControl() // Default is 44
headerView.addTarget(self, action: #selector(headerRefresh), for: .valueChanged)

Header (Auto)

let headerView = scrollView.header.setAutoControl(height: 60)
headerView.addTarget(self, action: #selector(headerRefresh), for: .valueChanged)

Footer (Manual)

let footerView = scrollView.footer.setManualControl() // Default is 44
headerView.addTarget(self, action: #selector(headerRefresh), for: .valueChanged)

Footer (Auto)

let footerView = scrollView.footer.setAutoControl(height: 60)
headerView.addTarget(self, action: #selector(headerRefresh), for: .valueChanged)

Author

Meggapixxel, zhydenkodeveloper@gmail.com

License

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