← ClaudeAtlas

srouting-developmentlisted

Expert guidance on setting up sRouting and adding new screens/routes in a SwiftUI application.
ThangKM/sRouting · ★ 16 · Web & Frontend · score 78
Install: claude install-skill ThangKM/sRouting
# sRouting Development Skill This skill provides step-by-step instructions for setting up the `sRouting` framework and adding new screens to a SwiftUI application. ## Architecture Overview The following diagram illustrates the core components of the `sRouting` framework and their interactions. ```mermaid graph TD subgraph View_Layer V["SwiftUI View"] VM["ViewModifier (.onRouting, .routeObserver)"] end subgraph Logic_Layer SRR["SRRouter<Route>"] SRC["SRContext (Global)"] end subgraph State_Layer COORD["@sRouteCoordinator"] EMIT["SRCoordinatorEmitter"] PATH["SRNavigationPath"] end V -- "commands" --> SRR SRR -- "triggers" --> TR["SRTransition"] VM -- "observes" --> SRR VM -- "updates" --> SRC COORD -- "owns" --> EMIT COORD -- "owns" --> PATH PATH -- "wraps" --> SWPATH["NavigationPath"] VM -- "executes" --> SWNAV["Presentation (Sheet, Cover, Alert etc.)"] VM -- "updates" --> COORD EMIT --"wraps" --> TBS["Tabbar Selection"] SRC --"updates all" --> VM ``` ## AI Context Guidance To quickly understand the context of an `sRouting` implementation, follow this research path: 1. **Entry Point**: Look for `@main` and `SRRootView` to find the `SRContext` and the initial `AppCoordinator`. 2. **Coordinator**: Examine the class annotated with `@sRouteCoordinator`. This reveals the tabs, navigation stacks, and mapping. 3. **Routes**: Identify `@sR