{"repo":"Sedlacek-Solutions/SwiftUI-Navigation","free":true,"listed":false,"github":"https://github.com/Sedlacek-Solutions/SwiftUI-Navigation","clone":"git clone https://github.com/Sedlacek-Solutions/SwiftUI-Navigation.git","description":"SwiftUI library for abstracting navigation logic from views","language":"Swift","stars":473,"topics":["navigation","routing","swiftui","abstraction","navigationdestination","navigationlink","navigationstack"],"license":"MIT","category":"mobile-apps","readme_excerpt":"SwiftUI-Navigation Description SwiftUI-Navigation is a lightweight SwiftUI navigation library. - Leverages 1st-party APIs NavigationStack & NavigationDestination . - Never be confused about NavigationLink or NavigationPath again! (You don't need them) - Type-Safe Navigation (better performance than type-erasing). - Centralized Navigation Logic. - Dynamic Navigation Stack Management. - Unit Tested protocol implementations. - Zero 3rd party dependencies. Table of Contents 1. Requirements 2. Installation 3. Getting Started 4. Passing Data Example 5. View Extensions 6. Under the hood Requirements Platform Minimum Version ---------- ----------------- iOS 16.0 macOS 13.0 tvOS 16.0 watchOS 9.0 Installation You can install SwiftUI-Navigation using the Swift Package Manager. 1. In Xcode, select File Add Package Dependencies . 2. Copy & paste the following into the Search or Enter Package URL search bar. 3. Xcode will fetch the repository & the SwiftUI-Navigation library will be added to your project. Getting Started 1. Create a Destination enum that conforms to the Destination protocol. 2. Create a DestinationState object and wrap your RootView with a Navigator . 3. Handle navigation using the DestinationState functions Passing Data Example View Extensions SwiftUI-Navigation provides several View extensions to simplify common navigation and presentation patterns when working with Destination types. navigationDestination(for: DestinationType.self) This extension is a convenience wrappe","default_branch":null,"files":null,"tree":[],"storefront":"/r/Sedlacek-Solutions","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Sedlacek-Solutions/SwiftUI-Navigation/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."}