adamtheturtle/macpulltorefresh
Native-feeling pull-to-refresh for macOS SwiftUI, backed by NSScrollView over-scroll and
Demo
<video src="https://github.com/adamtheturtle/MacPullToRefresh/raw/main/Documentation/pull-to-refresh.mp4" controls muted playsinline width="360"></video>
Pull past the top of a List or ScrollView: the indicator fills as you drag, arms once you pass the threshold, and spins while the refresh runs.
If the player above doesn't load, watch the clip directly.
Installation
.package(url: "https://github.com/adamtheturtle/MacPullToRefresh.git", from: "0.3.1")Add the MacPullToRefresh product to your target dependencies.
Product
MacPullToRefresh: A SwiftUI modifier for pull-to-refresh on macOS and iOS.
Requirements
- Swift 6.2+
- macOS 13+ or iOS 16+
License
MIT. See LICENSE.
Package Metadata
Repository: adamtheturtle/macpulltorefresh
Default branch: main
README: README.md