The app: shell, fold and reorient drags, orbit and accessibility (Tasks 11–14) !7

merged merged by cmc on 2026-10-20 21:32 UTC · krz/fold:app into main

Discussion

cmc
  • XcodeGen project App/project.yml with targets Fold, FoldTests and FoldUITests.
  • Model list. Step view: diagram beside the paper on iPad, above it on iPhone.
  • DiagramCanvas draws through Notation's drawDiagram.
  • PaperView is an MTKView that draws on demand.
  • FoldSession holds the step, t, the camera and the derived state.
  • FoldParameterMapping (Folding) and the fold drag: the moving centroid's screen path is searched outward from the current t, with a segment per axis window, fold-and-unfold peak and non-rigid phase. A degenerate path falls back to a vertical drag. The step completes only on lift at t = 1.
  • ReorientMapping and the drag for turn-over and rotate steps. The model reorients; the camera does not.
  • Camera.orbited(by:) and zoomed(by:within:). Two-finger orbit and pinch zoom suspend a one-finger drag and restore its t. VoiceOver adjustable action in tenths.
  • Accessibility audits at the default and largest text size; the caption scrolls at large sizes.
  • PrivacyInfo.xcprivacy, AppStore/rights-basis.md, scripts/take-screenshots.sh.
  • The catalogue test builds every shipped step's session inputs. The validator rejects a viewpoint whose up is along its eye.
  • Models resources are processed for the app bundle.
  • The plan is amended for rulings R42–R57, and lists what is open before Task 15.

Verification:

  • swift test --package-path Packages/FoldKit: 209 tests pass.
  • xcodebuild … -destination 'platform=iOS Simulator,name=iPhone 17 Pro,OS=26.5' test: 13 unit and 14 UI tests pass.
  • FoldGestureTests with -test-iterations 100: 200/200 pass.

Closes #6