From 19956e17238adffd7fe45ebc2366edccb50785d1 Mon Sep 17 00:00:00 2001 From: Cindy Zhang Date: Sun, 1 Nov 2026 18:11:36 -0800 Subject: [PATCH] spec(AST-094): withdraw #9423's three springs.contextMenu* FR4 rows until they are registered The role registry test requires FR4's table to equal the registered motion roles; the three rows #9423 added are not registered yet, turning main's UI unit tests red. Restores the record to its pre-#9423 text; the ContextMenu batch re-adds the rows with their registration. --- .../specs/AST-094-touch-presentations/spec.md | 50 ++++++++----------- 1 file changed, 20 insertions(+), 30 deletions(-) diff --git a/docs/specs/AST-094-touch-presentations/spec.md b/docs/specs/AST-094-touch-presentations/spec.md index 51dbfde118b5b..84ca1eea2206a 100644 --- a/docs/specs/AST-094-touch-presentations/spec.md +++ b/docs/specs/AST-094-touch-presentations/spec.md @@ -130,32 +130,25 @@ a measured, sourced difference exists. wherever the native motion settles with an overshoot or stretches with a rubber band. - | Role | Default | Source | - | ---------------------------- | ----------------------------------- | ----------------------------------------------------------------------------------------------------- | - | `springs.fingerTracking` | response 0.15 s, damping ratio 0.86 | Apple: SwiftUI `interactiveSpring()` | - | `springs.emphasis` | duration 0.5 s, bounce 0.3 | Apple: SwiftUI `.bouncy` | - | `springs.settle` | duration 0.5 s, bounce 0 | Apple: SwiftUI `.smooth` | - | `springs.quickChange` | duration 0.5 s, bounce 0.15 | Apple: SwiftUI `.snappy` | - | `springs.viewChange` | mass 3, stiffness 1000, damping 500 | measured: UIKit `UISpringTimingParameters()`, iOS 26.2 simulator, 2026-10-23 | - | `springs.timedChange` | duration 0.5 s, bounce 0 | Apple: UIKit `UIView.animate(springDuration:bounce:)` | - | `springs.stateChange` | response 0.55 s, damping ratio 1 | Apple: SwiftUI `Animation.default` | - | `springs.directChange` | response 0.5 s, damping ratio 0.825 | Apple: SwiftUI `.spring(response:dampingFraction:)` | - | `springs.menuOpen` | damping ratio 0.8, response 0.32 s | measured: UIMenu opening, iOS 26.2 simulator, 2026-10-23 | - | `springs.menuClose` | damping ratio 0.85, response 0.35 s | measured: UIMenu closing, iOS 26.2 simulator, 2026-10-23 | - | `springs.subMenuOpen` | damping ratio 0.85, response 0.4 s | measured: UIKit's own spring for UIMenu's sub-menu opening, iOS 26.2 simulator, 2026-10-24 | - | `springs.subMenuBack` | damping ratio 1, response 0.4 s | measured: UIKit's own spring for UIMenu's sub-menu header back, iOS 26.2 simulator, 2026-10-24 | - | `springs.contextMenuLift` | damping ratio 0.8, response 0.32 s | measured: UIContextMenuInteraction's preview lift, iOS 26.2 simulator, 2026-10-23 | - | `springs.contextMenuDismiss` | damping ratio 0.85, response 0.35 s | measured: UIContextMenuInteraction's dismissal, iOS 26.2 simulator, 2026-10-23 | - | `springs.contextMenuMorph` | damping ratio 0.8, response 0.3 s | measured: UIContextMenuInteraction's menu entrance and preview shadow, iOS 26.2 simulator, 2026-10-23 | - | `timing.stateChangeMs` | 250 ms | measured: Core Animation's implicit transaction, iOS 26.2 simulator, 2026-10-23 | - | `timing.curves.viewChange` | cubic-bezier(0.25, 0.1, 0.25, 1) | Apple: `CAMediaTimingFunctionName.default` | - | `timing.curves.exit` | cubic-bezier(0.42, 0, 1, 1) | measured: UIKit's ease-in, iOS 26.2 simulator, 2026-10-23 | - | `timing.curves.entrance` | cubic-bezier(0, 0, 0.58, 1) | measured: UIKit's ease-out, iOS 26.2 simulator, 2026-10-23 | - | `timing.curves.move` | cubic-bezier(0.42, 0, 0.58, 1) | measured: UIKit's ease-in-out, iOS 26.2 simulator, 2026-10-23 | - - The three `springs.contextMenu*` rows are measured for ContextMenu's lift, - and `component:ContextMenu` owns them (DEC-5). They play only in a - ContextMenu that a touch opens. + | Role | Default | Source | + | -------------------------- | ----------------------------------- | ---------------------------------------------------------------------------------------------- | + | `springs.fingerTracking` | response 0.15 s, damping ratio 0.86 | Apple: SwiftUI `interactiveSpring()` | + | `springs.emphasis` | duration 0.5 s, bounce 0.3 | Apple: SwiftUI `.bouncy` | + | `springs.settle` | duration 0.5 s, bounce 0 | Apple: SwiftUI `.smooth` | + | `springs.quickChange` | duration 0.5 s, bounce 0.15 | Apple: SwiftUI `.snappy` | + | `springs.viewChange` | mass 3, stiffness 1000, damping 500 | measured: UIKit `UISpringTimingParameters()`, iOS 26.2 simulator, 2026-10-23 | + | `springs.timedChange` | duration 0.5 s, bounce 0 | Apple: UIKit `UIView.animate(springDuration:bounce:)` | + | `springs.stateChange` | response 0.55 s, damping ratio 1 | Apple: SwiftUI `Animation.default` | + | `springs.directChange` | response 0.5 s, damping ratio 0.825 | Apple: SwiftUI `.spring(response:dampingFraction:)` | + | `springs.menuOpen` | damping ratio 0.8, response 0.32 s | measured: UIMenu opening, iOS 26.2 simulator, 2026-10-23 | + | `springs.menuClose` | damping ratio 0.85, response 0.35 s | measured: UIMenu closing, iOS 26.2 simulator, 2026-10-23 | + | `springs.subMenuOpen` | damping ratio 0.85, response 0.4 s | measured: UIKit's own spring for UIMenu's sub-menu opening, iOS 26.2 simulator, 2026-10-24 | + | `springs.subMenuBack` | damping ratio 1, response 0.4 s | measured: UIKit's own spring for UIMenu's sub-menu header back, iOS 26.2 simulator, 2026-10-24 | + | `timing.stateChangeMs` | 250 ms | measured: Core Animation's implicit transaction, iOS 26.2 simulator, 2026-10-23 | + | `timing.curves.viewChange` | cubic-bezier(0.25, 0.1, 0.25, 1) | Apple: `CAMediaTimingFunctionName.default` | + | `timing.curves.exit` | cubic-bezier(0.42, 0, 1, 1) | measured: UIKit's ease-in, iOS 26.2 simulator, 2026-10-23 | + | `timing.curves.entrance` | cubic-bezier(0, 0, 0.58, 1) | measured: UIKit's ease-out, iOS 26.2 simulator, 2026-10-23 | + | `timing.curves.move` | cubic-bezier(0.42, 0, 0.58, 1) | measured: UIKit's ease-in-out, iOS 26.2 simulator, 2026-10-23 | ### Motion @@ -405,8 +398,7 @@ under a finger, and a mouse follows `module:DropdownMenu/useMenuPress` FR3 and Under a finger, on every touch device, an anchored menu or a Popover MUST open by growing out of its trigger and close by shrinking back into it, on its motion roles (FR4; a menu on `springs.menuOpen` and - `springs.menuClose`; a lifted ContextMenu's menu grows on - `springs.contextMenuMorph`). The shrink plays in full after the surface has + `springs.menuClose`). The shrink plays in full after the surface has closed. This is its exit under FR7 (`family:overlay-dismissal` AV6); under reduced motion FR8 applies. A menu or popover presented as a bottom sheet follows the sheet instead. @@ -683,8 +675,6 @@ under a finger, and a mouse follows `module:DropdownMenu/useMenuPress` FR3 and its neighbors, unless a component or module record sets its own (FR42). - `component:DropdownMenu`, `component:ContextMenu` and `component:Popover`: under a finger they follow FR26–FR35 as each applies. -- `component:ContextMenu`: implementation gap: the three `springs.contextMenu*` - roles (FR4) are not registered motion roles. - `component:AlertDialog`, `component:Dialog`, `component:BottomSheet`, `component:BottomSheetSwitcher`, `component:Drawer`, `component:MobileNav` and `component:Lightbox`: under a finger, a tap or a drag during the