{"repo":"Dimillian/AppRouter","free":true,"listed":false,"github":"https://github.com/Dimillian/AppRouter","clone":"git clone https://github.com/Dimillian/AppRouter.git","description":"A simple router for SwiftUI apps","language":"Swift","stars":475,"topics":["swift","swiftui"],"license":"MIT","category":"mobile-apps","readme_excerpt":"AppRouter A generic, reusable navigation router for SwiftUI applications. Supports both simple single-stack navigation and complex tab-based navigation with independent navigation stacks and sheet presentation. Features - 🎯 Simple Router - SimpleRouter for single NavigationStack apps - 🏷️ Tab Router - Router for tab-based apps with independent navigation per tab - 📄 Sheet Management - Built-in sheet presentation and dismissal - 🔄 SwiftUI Integration - Uses @Observable for reactive state updates - 🧵 Thread Safe - @MainActor implementation ensures UI safety - 📱 iOS 17+ Ready - Built for modern SwiftUI patterns - 🔗 URL Deep Linking - Navigate via URLs with automatic parameter parsing - 🛤️ Contextual Routing - Same path components create different destinations based on context (e.g., /users/detail vs /posts/detail ) Installation Swift Package Manager Add this package to your project: Quick Start AppRouter provides two routers depending on your app's navigation needs: - SimpleRouter - For apps with a single NavigationStack - Router - For apps with tab-based navigation Option 1: Simple Navigation (Single Stack) Perfect for apps that don't use tabs and just need a single navigation stack with sheet support. Option 2: Tab-Based Navigation For apps that use TabView with independent navigation stacks per tab. 1. Define Your Tab Type 2. Define Destination and Sheet Types 3. Use the Tab Router API Reference SimpleRouter For single NavigationStack apps: Properties - path: [Destina","default_branch":null,"files":null,"tree":[],"storefront":"/r/Dimillian","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Dimillian/AppRouter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}