简体   繁体   中英

How do I navigate to another screen from a login screen with SwiftUI

I want to navigate from a splash/login view to a home view without the possibility of going back unless the user restarts the application using SwiftUI. I know I can use a navigation link and SwiftUI will present a back button. Is there a way to go from view to view without the back button?

If you need to present a view, you can look at this article

On the contrary if the concern is not to show the back button, on the home view one can hide the back button using the configuration like

.navigationBarBackButtonHidden(true)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM