sRouting Development

Configure SwiftUI navigation with sRouting's SRRootView, coordinators, and route flows.

16|3|Updated Jun 30, 2021
One-click install
npx skills add https://github.com/ThangKM/sRouting --skill srouting-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sRouting Development
Source: https://github.com/ThangKM/sRouting/tree/main
Command: npx skills add https://github.com/ThangKM/sRouting --skill srouting-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill replaces scattered navigation wiring with a guided architecture map for sRouting's SRRootView, coordinators, routes, and router observers so SwiftUI developers can avoid trial and error when connecting screens.

Core Features & Use Cases

  • Architecture overview: Combines a diagram and explanation of view layers, routers, contexts, and coordinator emitters so you can see how each piece affects navigation state.
  • Macro-driven route setup: Covers how to declare routes with @sRoute, @sRoutePath, and @sSubRoute along with @sRouteCoordinator and @sRouteObserver so destination handling remains consistent as the app grows.
  • Router action catalog and deep linking: Details SRRouter triggers, modal actions, tab selection, and context routing for pushing new flows, presenting sheets, and responding to deep links, which keeps new screens and coordinator handoffs reliable.

Quick Start

Walk me through configuring SRRootView, AppCoordinator, route observers, and router actions for my SwiftUI application.

Frequently Asked Questions about sRouting Development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure SwiftUI navigation using the coordinator pattern?

Configuring SwiftUI navigation with the coordinator pattern involves setting up SRRootView, AppCoordinator, and route observers using sRouting. This framework provides a guided architecture map that replaces scattered navigation wiring and prevents trial-and-error when connecting screens.

How do I declare navigation routes in SwiftUI using macros?

You can declare navigation routes in SwiftUI using sRouting macros like @sRoute, @sRoutePath, and @sSubRoute. These macros ensure destination handling remains consistent as your application grows and new screens are added.

What is the best way to handle deep linking in SwiftUI apps?

The best way to handle deep linking in SwiftUI apps is by using SRRouter actions and context routing. sRouting details these triggers to respond to deep links reliably, keeping new screens and coordinator handoffs consistent.

How do I present sheets and select tabs in SwiftUI without navigation state issues?

Presenting sheets and selecting tabs in SwiftUI without state issues is handled through SRRouter actions. sRouting details modal actions, tab selection, and router triggers to push new flows and present sheets reliably across your app.

Does sRouting work with existing Swift package projects?

Yes, sRouting targets SwiftUI app developers configuring navigation within a Swift package project. It details how to integrate SRRootView, coordinator macros, and router observers directly into your existing package environment.

Why does my SwiftUI navigation state become scattered across views?

SwiftUI navigation state becomes scattered when wiring is handled manually across views. sRouting solves this by providing an architecture overview of view layers, routers, contexts, and coordinator emitters so each piece affects navigation state predictably.