This is FANTASTIC!! I would not be surprised if someone from the Apple Development Team sees this video and incorporates this framework either this year or next into SwiftUI. Thanks for the video and for the framework
Man.. This is Goldmine!! I can see the amount of work that has been put into making it so smooth and user friendly. Great work Nick! Hope it gets the recognition it deserves!
Thank-you for making this. I am a flutter developer learning SwiftUI by making an app. The native routing sucks compared to something like flutter and UIKit. This package helps make routing easy
Hi Nick, Thank you very much for this framework, it is for sure underrated! One question though, it seems my environments object are not working anymore in the Child views... Is there any specific place to put them so they are available through the app? thank you
Hi there, is there a way where i can replace remove all and add new one to stack from anywhere. Like if i have navigated in some nested view, now i want to remove all and add new view to stack like if it had [a,b,c,d,currentonScreen] then to [e] from currentonScreen. Is there a way to clear stack and add new view from anywhere or anything similar ?
This package is awesome and just one request can you add new function in your new releases which can dismiss only 2nd or 3rd from Stack which has 6 views. Basically want to pop where ever we want instead of poptoroot or dismiss only one.
@@SwiftfulThinking Thanks for the quick reply.. But the push has full screen and has the transition effect where as sheet is half screen or (cant be full) or with fullsheet it will present from bottom or center. not exactly what we wanted right. It will be better for push we can dismiss the screens till we wanted. This way we can avoid that strategic.. And also for iPad the sheet or fullscreencover strategic will not apply right.
Nice framework, but is it possible to use it with watchOS? Currently, I am getting multiple availability errors after adding framework to watchOS 10.0 target
Agree with you, but it will dismiss pushes. I mean just move back for two screens. Like in UINavigation controller, you could receive view controller in array by index.
When I repeatedly press and dismiss the sheet, it crashes and throws error "RouterView.swift:483: Fatal error: Did dismiss pushed screen but could not find new root screen"
If you can reproduce the bug, you can file an issue on the GitHub repo w/ repo steps. There’s a sample project which should also help debug your implementation vs the package.
I have a RouterView for registration and a RouterView for the main app. Now, when someone enters the app first, if he registers, go to the main app screen, but if not, go to the registration view. When registration is complete, I want him to go to the main app. If I do that, then the back button shows up. What's the solution for this? I want to remove the stack of RouterView for registration, then push him to the RouterView for the main app. Same problem for login also. Should I use Modal for login and registration?
It should be the same setup you would have without using SwiftfulRouting. If it doesn’t work without the package, it still won’t work with the package. You could put 2 RouterViews in a ZStack and then add conditional logic for which to display
This is FANTASTIC!! I would not be surprised if someone from the Apple Development Team sees this video and incorporates this framework either this year or next into SwiftUI. Thanks for the video and for the framework
Man.. This is Goldmine!!
I can see the amount of work that has been put into making it so smooth and user friendly.
Great work Nick!
Hope it gets the recognition it deserves!
Thank-you for making this. I am a flutter developer learning SwiftUI by making an app. The native routing sucks compared to something like flutter and UIKit. This package helps make routing easy
Good (Router), Better (all functionality), BEST (Screen Flows) !!!! Great job and thx for sharing ✌👏💯
Apple: We did amazing job with new navigation stack in iOS 16 !
Nick: Hold my beer...
Nick, know that you are amazing! So so so thankful for you bro 🙏🏼
This is brilliant dude! Well done
I love the implementation , good job
This was a lot of work!. Thank you so much for doing this
You literally are my hero
Simply incredible, massive thanks
Hi Nick, Thank you very much for this framework, it is for sure underrated! One question though, it seems my environments object are not working anymore in the Child views... Is there any specific place to put them so they are available through the app? thank you
Can you cover Swinject too ?
please dont!
Looks incredibly useful
Thanks Nick, i really need this rooting for my project 😭😭😭
Excellent!
This is very nice..!!!
Hi there, is there a way where i can replace remove all and add new one to stack from anywhere. Like if i have navigated in some nested view, now i want to remove all and add new view to stack like if it had [a,b,c,d,currentonScreen] then to [e] from currentonScreen. Is there a way to clear stack and add new view from anywhere or anything similar ?
Will this lib remains compatible to Swiftui if xcode or Apple version's upgrade?
can i use pod to install this package?
Thanks Nick 💯
This package is awesome and just one request can you add new function in your new releases which can dismiss only 2nd or 3rd from Stack which has 6 views. Basically want to pop where ever we want instead of poptoroot or dismiss only one.
You can be strategic with segues and display screen 2/3 as a sheet or fullScreenCover then use dismissEnvironment
@@SwiftfulThinking Thanks for the quick reply.. But the push has full screen and has the transition effect where as sheet is half screen or (cant be full) or with fullsheet it will present from bottom or center. not exactly what we wanted right. It will be better for push we can dismiss the screens till we wanted. This way we can avoid that strategic.. And also for iPad the sheet or fullscreencover strategic will not apply right.
Nice framework, but is it possible to use it with watchOS? Currently, I am getting multiple availability errors after adding framework to watchOS 10.0 target
I’ve never used it on WatchOS but I’d be happy to merge changes if you want to create a PR
After so long
Is it possible to make pop for 2 screens back. For example:
Push -> Push
Yes, dismissScreenStack()
Agree with you, but it will dismiss pushes. I mean just move back for two screens. Like in UINavigation controller, you could receive view controller in array by index.
@@SwiftfulThinking dismissScreenStack() is going to dismiss all the pushes, what if we want to dismiss only 2 or 3 from Stack which has 6 views ?
When I repeatedly press and dismiss the sheet, it crashes and throws error "RouterView.swift:483: Fatal error: Did dismiss pushed screen but could not find new root screen"
If you can reproduce the bug, you can file an issue on the GitHub repo w/ repo steps. There’s a sample project which should also help debug your implementation vs the package.
Can you provide a option to hide default back button in router options
This is not included because the native Navigation modifiers still work. You can use .toolbar or .navigationBar…
what min ios for using pakage
Can you provide a tutorial on using SwiftfulRouting with tabBar?
The same way you use NavigationStack with tabBar
@@SwiftfulThinking How to go back to a certain view in the ScreenStack?
Does "NavigationLink" works with this?
Yes, but you don’t need to use it anymore
I have a RouterView for registration and a RouterView for the main app.
Now, when someone enters the app first, if he registers, go to the main app screen, but if not, go to the registration view. When registration is complete, I want him to go to the main app. If I do that, then the back button shows up. What's the solution for this?
I want to remove the stack of RouterView for registration, then push him to the RouterView for the main app.
Same problem for login also. Should I use Modal for login and registration?
It should be the same setup you would have without using SwiftfulRouting. If it doesn’t work without the package, it still won’t work with the package.
You could put 2 RouterViews in a ZStack and then add conditional logic for which to display
Man, amazing...
Try include different transitions
this doesn't work when I move to a tabview from router view and put router views for each tabs
It works the same as NavigationStack & NavigationView
Thanks 🎉
Only one question: Why you still not in the Apple SwiftUI team?
This looks quite promissing, will def try on my new projects
amazingg