Skip to content

0.1.0

Choose a tag to compare

@adamtheturtle adamtheturtle released this 02 Jul 07:20

Initial release of MacPullToRefresh.

A native-feeling pull-to-refresh for macOS SwiftUI, backed by the real NSScrollView rubber-band.

  • Native NSScrollView over-scroll — hooks willStartLiveScroll / bounds changes rather than a hand-rolled offset hack, so pulls feel native. On macOS, SwiftUI's .refreshable never fires from a gesture; this fixes that.
  • Works with SwiftUI List (and ScrollView) — handles List's quirk of placing its background outside its scroll view.
  • Liquid Glass indicator on macOS 26, with an opaque-material fallback on earlier systems.
  • Cross-platform call site — forwards to the native .refreshable on iOS, so .macPullToRefresh { } works on both without an #if.
  • Accessibility-scaled indicator, async refresh actions, and live-scroll gating to avoid false triggers at launch.

Requires macOS 13+ / iOS 16+, built with the macOS 26 SDK.