srouting-development

Solid

Expert guidance on setting up sRouting and adding new screens/routes in a SwiftUI application.

Web & Frontend 16 stars 3 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
41
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# 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...

Details

Author
ThangKM
Repository
ThangKM/sRouting
Created
4 years ago
Last Updated
1 weeks ago
Language
Swift
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category