You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 29bea1f
Browse filesBrowse the repository at this point in the historyBrowse files
chore(core): UIRefreshControl's values in the UIKit table
refreshControl joins the UIKit constants table: the refreshing inset and the
one-to-one stretch of a pull, the trigger distance against the scroll view's
height (0.198 x the height, never below 73 pt), the pull after the trigger,
the indicator's reveal curve, spokes, spin, trigger spring and exit, and the
end-of-refresh clock, each measured on the iOS 26.2 simulator or labelled a
guess with its measurement task. It reads as uikit.refreshControl through
the experimental motion subpath.
[experimental] The UIKit constants table read through `@astryxdesign/core/motion/experimental` gains UIRefreshControl's values as `uikit.refreshControl`: the refreshing inset, the trigger distance against the scroll view's height, the pull after the trigger, the indicator's reveal, spin and exit, and the end-of-refresh clock, each measured on the iOS 26.2 simulator or labelled a guess with its measurement task. Four of them are motion roles a theme may retune (`refreshControl.endMs`, `refreshControl.exitMs`, `refreshControl.spinMs`, `refreshControl.triggerTurnSpring`).
Copy file name to clipboardExpand all lines: packages/core/src/motion/MEASUREMENTS.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -269,3 +269,30 @@ fades in, with Prefer Cross-Fade Transitions on or off.
269
269
| M-CM4 | Reduce Motion press feedback | Probe app with Reduce Motion on: long press, then dismiss | press feedback, lift and dismiss animations under Reduce Motion | A, B |
270
270
| M-CM5 | Commit haptic stand-in | An Android device: `navigator.vibrate` patterns against the platform's HapticFeedbackConstants for the context-click moment | the pattern that matches; not a UIKit parity value (as M-G18) | H |
271
271
| M-CM6 | Press thresholds | Probe app: repeated long presses at random vsync phases | from touch receipt and from the HID timestamp, the tick before and the tick at the press observer's began and at the click commit; the intersection pins the 150 ms and 400 ms thresholds | C |
272
+
273
+
## Refresh control (UIRefreshControl)
274
+
275
+
Values the refresh control reads from its own table (`uikit/refresh.ts`); its
276
+
release onto the inset is `scroll.bounce` (M-S3) and its pull past the
277
+
control's height is `scroll.rubberBand`. Subject: RefreshLab, a UIKit host app
278
+
with a `UIRefreshControl` on a table view (334, 400, 874 and 1366 pt tall on
279
+
the iPhone 17 Pro simulator) and buttons for `beginRefreshing` and
280
+
`endRefreshing`.
281
+
282
+
Done (iOS 26.2 simulator, Oct 23 2026; in the refresh control's table): the
283
+
height and refreshing inset, the one-to-one pull up to the height, the trigger
284
+
distance against the view's height (and its floor), the trigger moment (finger
285
+
down), the step after it, the release onto the inset, the reveal (a paused
286
+
replicator scrubbed by overscroll ÷ trigger distance; 8 spokes), the spin and
287
+
trigger springs, the end clock (three runs at rest, identical), that a
288
+
momentum overshoot never triggers, that a pull while refreshing fires
289
+
`valueChanged` again, and that the trigger makes no feedback-generator call
290
+
(at 50, 150 and 400 pt/s).
291
+
292
+
| ID | What | App and gesture | Extract | Method |
| M-RC2 | Indicator placement | RefreshLab: slow pulls to 2 × the trigger distance on the 400 and 874 pt views, a screen recording beside the layer log | the control's frame and the spinner's position against the overscroll (moves with the content, pinned, or centred in the gap) | B, C |
295
+
| M-RC3 | Pull after the trigger | RefreshLab: pulls to 300 pt at 150 and 50 pt/s on the 334 and 874 pt views; a second pull while refreshing | the offset against the finger past 2 × `height` (is the step back systematic?), and the distance at which a pull while refreshing fires | C |
296
+
| M-RC4 | Trigger springs | RefreshLab: pulls through the trigger at 50, 150 and 400 pt/s | the trigger springs' `allowsOverdamping`, target values (`instanceAlphaOffset`, `instanceColor`), stiffness against the release speed | A |
297
+
| M-RC5 | End of a refresh | RefreshLab: `endRefreshing` while scrolled 300 pt away, while dragging, with a touch 100 ms into it, and 50 ms after a begin | what moves when scrolled away, the end under a finger, what a touch during the end does, any minimum visible time; a screen recording | A, B |
298
+
| M-RC7 | Programmatic begin | RefreshLab: `beginRefreshing` at the top and when scrolled 300 pt | whether the content moves to reveal the control, and its curve | A, C |
0 commit comments