Home

Awesome

SwiftUI Router examples

SwiftUI Swift Xcode

This repository contains examples demonstrating how to utilize path-based routing using the SwiftUI Router library. These examples are not made to look pretty, but rather, are simplified to better showcase SwiftUI Router's features as well as giving examples on how to structure your routes and code.

The examples

ExamplePlatforms<sup>1,2</sup>Description
RandomUsersiOS, macOSA simple contacts-like app with 100 randomly generated users from randomuser.me. It demonstrates most of the features SwiftUI Router has to offer, how to organize routes and being able to redirect users to different parts of the app with a single button.
SwipingiOSA featureless app trying to replicate iOS's swipe-to-return navigation.
TabViewiOS, macOSExample of how to combine SwiftUI Router and SwiftUI's builtin TabView.

<sup>1</sup> SwiftUI Router is available on iOS (and iPadOS), macOS, tvOS and watchOS. Due to the interest of time the examples were only made and tested on iOS and macOS. 🙇
<sup>2</sup> All projects are made for iOS 15+ or macOS 12+.