SwiftUIRouter
An experimental navigation router for SwiftUI
Usage
? Check out ExampleApp for more.
- Define your routes:
- Implement how they should be resolved:
- Create root app:
Benefit:
Other works
- LayoutSwift - Yet another Swift Autolayout DSL for iOS.
- ChainSwift - ChainSwift ? is an extension that provides chainable way of setting properties.
Installation
Swift Package Manager
Note: Instructions below are for using SwiftPM without the Xcode UI. It's the easiest to go to your Project Settings -> Swift Packages and add SwiftUIRouter from there.
To integrate using Apple's Swift Package Manager , without Xcode integration, add the following as a dependency to your Package.swift
:
and then specify "SwiftUIRouter"
as a dependency of the Target in which you wish to use SwiftUIRouter.
Manually
Just drag and drop the files in the Sources folder.
Authors
- Orkhan Alikhanov - Initial work - OrkhanAlikhanov
See also the list of contributors who participated in this project.