Navigate Between Views - SwiftUI
HTML-код
- Опубликовано: 15 сен 2024
- In this tutorial I explain how you can create a simple navigation between two views programmatically in a SwiftUI project using the Swift programming language. This only take a small amount of code to accomplish! We use the NavigationView and the NavigationLink functions.
I have tried so many videos and so many hours trying to understand this and you just nailed it in 5 minutes.
Wow! Thank you
I have been working on so many methods to get my code to work and you explained and demonstrated it so well! Thank you!
Thank you, so simple and straightforward.😊
Thanks bro! i tried so manytime to figure out how to navigate
and now i know how to
Just what i was looking for
thanks. They helped so much
Thanks for the information, just what i was looking for!
Thank you very much.
when i do this on a view that already has content, it makes the navigùation link just a small window and also the view its linking to is just visible in a small box, is there a way to make it literally change view (fullscreewn?) tahnks
Very helpful. Thank you!
Isnt NavigationView deprecated now? Since iOS 16?
Yes it’s NavigationStack now
As someone who is new to Swift UI how would I be able to throw variables into another view
Use binding variables
@@matti6 how would I do that? Also what are binding veriables
so how you do this when you have a list with 20 items to display and each item list has a different view? Examples with just 1 view to navigate are easy dude
thank you so much omg
mines keeps saying cannot find ‘ViewTwo’ in scope
Are you sure that you are spelling View the same way both times? I know that always trips me up.
Thanks! 100% works here in 2024
Thank you very much.