Lightweight pull-to-refresh and infinite-scrolling helpers for UIScrollView on iOS.
Add this repository to your iOS project using Xcode's Swift Packages UI (File → Add Packages) or in your Package.swift dependencies:
.package(url: "https://github.com/mobile-health/RefreshableKit.git", from: "0.0.1")Then add RefreshableKit to your target's dependencies and import it:
import RefreshableKitNote: The package includes a fallback shim for SWActivityIndicatorView so it builds without external SPM dependencies. For CocoaPods users, the real SWActivityIndicatorView will be used automatically when available.
pod 'RefreshableKit', '~> 0.0.1'Use the provided UIScrollView extensions to add pull-to-refresh and infinite scrolling:
import RefreshableKit
// Add pull-to-refresh
scrollView.addPullToRefresh {
// Your refresh logic
}
// Add infinite scrolling
scrollView.addInfinityScrolling {
// Your load more logic
}