Step list and dragging back (Task 14b) !8

merged merged by cmc on 2026-10-22 20:11 UTC · krz/fold:step-access into main

Discussion

cmc
  • Step list on demand: the toolbar "Steps" button opens every step's number and instruction, as a popover on iPad and a sheet on iPhone, scrolled to the current step. Choosing a step opens it at its start; choosing the current step leaves it alone. The title reads "Step n of N".
  • FoldSession.open(step:) resets t, the camera, the diagram and the mapping, and cancels any drag in progress.
  • The fold drag crosses axis windows and non-rigid phases in both directions. The drag carries a FoldParameterMapping.Position (t and segment), so a retraced stretch keeps its segment. A fold-and-unfold stays one way at its peak, because its return half is the unfold. The 0.5-point end tolerance applies at t = 1 only.
  • The plan gains Task 14b.

Verification:

  • swift test --package-path Packages/FoldKit passes.
  • xcodebuild … -destination 'platform=iOS Simulator,name=iPhone 17 Pro,OS=26.5' test: 20 unit and 19 UI tests pass, including the accessibility audits with the list open.
  • FoldGestureTests with -test-iterations 30: 60/60 pass.

Closes #9