Ios Preserve Navigation State
Persist and restore scroll position, selected tab, search text, filters, and any user-entered state across navigation transitions and app foregrounding.
$ prime install @community/rule-ios-preserve-navigation-state Projection
Always in _index.xml · the agent never has to ask for this.
IosPreserveNavigationState [rule] v1.0.0
Persist and restore scroll position, selected tab, search text, filters, and any user-entered state across navigation transitions and app foregrounding.
Loaded when retrieval picks the atom as adjacent / supporting.
IosPreserveNavigationState [rule] v1.0.0
Persist and restore scroll position, selected tab, search text, filters, and any user-entered state across navigation transitions and app foregrounding.
Applies To
all iOS views where the user may navigate away and return (tab switching, push/pop, backgrounding)
Loaded when retrieval picks the atom as a focal / direct hit.
IosPreserveNavigationState [rule] v1.0.0
Persist and restore scroll position, selected tab, search text, filters, and any user-entered state across navigation transitions and app foregrounding.
Applies To
all iOS views where the user may navigate away and return (tab switching, push/pop, backgrounding)
Examples
- Switching tabs: return to the same scroll offset and selected item that was visible before leaving.
- After backgrounding: restore the active list filter and search text.
- Verify: navigate away and return; scroll position and any user-entered state must be preserved.
Rationale
Forcing users to reconstruct context from memory adds cognitive load; recognition (seeing the restored state) is faster and less error-prone than recall (re-entering the same settings). Resetting scroll or filter state on tab switch is a common source of frustration.
Applies To
all iOS views where the user may navigate away and return (tab switching, push/pop, backgrounding)
Source
prime-system/examples/frontend-design/primes/compiled/@community/rule-ios-preserve-navigation-state/atom.yaml