Skip to content

0.3.1 — native-anchored indicator, steady spin

Latest

Choose a tag to compare

@adamtheturtle adamtheturtle released this 02 Jul 18:35
0673487

Refines the macOS pull-to-refresh so the indicator behaves like iOS even while the list is scrolled during a refresh.

What changed

  • Rows can no longer scroll over the spinner. The indicator is now hosted inside the scroll view's clip view, sitting in the gap just above the first row. AppKit carries it along with every scroll (including momentum) in the same pass as the rows — no bridge lag — and it clips away at the top edge as it rides off.
  • Rock-steady spin. The rotation is driven from a TimelineView clock instead of a repeatForever animation, which stuttered and changed pace when the hosted view re-rendered or scrolled. Also eased to 1.7s per revolution.

Install

```swift
.package(url: "https://github.com/adamtheturtle/MacPullToRefresh.git", from: "0.3.1")
```