frzi / swiftui-router

Path-based routing in SwiftUI
MIT License
919 stars 44 forks source link

How to navigate to any page #37

Closed liziyang0625 closed 2 years ago

liziyang0625 commented 2 years ago

Hello, I am new to SwiftUI, I have a page A with a Button, when I press the Button, I want navigate to PageB, I don't know how to write the Route, can you help me, thanks.

frzi commented 2 years ago

Hi 👋

A quick example can be found in #32 (How to use).

frzi commented 2 years ago

With the release of 1.3.0 a small set of examples have been created. They can be found in their own repository.