8000 GitHub - rmonu0189/RouterSample
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

rmonu0189/RouterSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

RouterSample

This repository demonstrates how to implement a custom routing system in SwiftUI using NavigationPath and a Router class, providing a clean and modular approach to navigation in iOS 16 and later.

Overview

SwiftUI's NavigationPath offers a flexible way to manage navigation stacks programmatically. By integrating a Router class that conforms to the ObservableObject protocol, you can centralize navigation logic, making it easier to handle complex navigation flows, including presenting sheets and full-screen covers.

Features

Programmatic Navigation: Navigate between views using the Router class without relying solely on NavigationLink. State Management: The Router class, as an ObservableObject, allows for reactive UI updates in response to navigation state changes. Modal Presentations: Support for presenting sheets and full-screen covers through the router. Getting Started

Prerequisites

Xcode 14 or later iOS 16 or later

Installation

  1. Clone the Repository: git clone https://github.com/rmonu0189/RouterSample.git

  2. Open the Project: Navigate to the project directory and open RouterSample.xcodeproj in Xcode.

  3. Build and Run: Select the desired simulator or device and run the project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0