How to use SwiftfulRouting in SwiftUI | Swift Packages #5

  Переглядів 3,365

Swiftful Thinking

Swiftful Thinking

День тому

Streamline navigation in your SwiftUI apps with SwiftfulRouting. This concise tutorial demonstrates how to implement SwiftfulRouting, a Swift Package offering programmatic navigation in SwiftUI apps. Learn to manage app navigation and transitions seamlessly, optimizing user experience and code structure. Suitable for developers aiming to refine navigation logic in SwiftUI projects. This video is part of our Swift Packages series, focusing on enhancing SwiftUI apps with effective routing techniques. Subscribe for insights into SwiftUI navigation and Swift Package utilization.
🤙 WELCOME BACK 🤙
WEBSITE: www.swiftful-thinking.com
DISCORD: / discord
GITHUB: github.com/SwiftfulThinking/
SAY THANKS: www.buymeacoffee.com/nicksarno
🤙 #KEEPGOING 🤙
0:00 SwiftfulRouting
03:00 Welcome back!
03:59 Documentation
05:58 Code start
06:49 RouterView
08:35 Segues (showScreen)
11:06 Routes and AnyRoute
11:36 Alerts (showAlert)
12:13 Modals (showModal)
12:31 Decoupled Routing from View
18:00 Implementing into existing apps
18:44 Pushing multiple screens at once (pushScreenStack)
19:33 Pop to root (dismissScreenStack)
20:05 Example project
22:38 Screen Flows (enterScreenFlow)
28:48 Wrapping up

КОМЕНТАРІ: 31
@30guarino
@30guarino Місяць тому
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
@divyanshnema2361
@divyanshnema2361 Місяць тому
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!
@loudibird
@loudibird Місяць тому
You literally are my hero
@bbongrip
@bbongrip Місяць тому
This is brilliant dude! Well done
@GeraldHilbers
@GeraldHilbers Місяць тому
Good (Router), Better (all functionality), BEST (Screen Flows) !!!! Great job and thx for sharing ✌👏💯
@andresraigoza2082
@andresraigoza2082 16 днів тому
This was a lot of work!. Thank you so much for doing this
@RobertMcGovernTarasis
@RobertMcGovernTarasis Місяць тому
Looks incredibly useful
@shootgunbrim7608
@shootgunbrim7608 Місяць тому
Thanks Nick, i really need this rooting for my project 😭😭😭
@indomitabletr1834
@indomitabletr1834 Місяць тому
Can you cover Swinject too ?
@Code2Product
@Code2Product Місяць тому
After so long
@hashankannangara5812
@hashankannangara5812 Місяць тому
can i use pod to install this package?
@unistern
@unistern Місяць тому
Will this lib remains compatible to Swiftui if xcode or Apple version's upgrade?
@engahmed1863
@engahmed1863 10 днів тому
what min ios for using pakage
@tiagoleme5620
@tiagoleme5620 Місяць тому
This looks quite promissing, will def try on my new projects
@martinbucko9013
@martinbucko9013 11 днів тому
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
@SwiftfulThinking
@SwiftfulThinking 11 днів тому
I’ve never used it on WatchOS but I’d be happy to merge changes if you want to create a PR
@devworld4170
@devworld4170 14 днів тому
Is it possible to make pop for 2 screens back. For example: Push -> Push
@SwiftfulThinking
@SwiftfulThinking 14 днів тому
Yes, dismissScreenStack()
@devworld4170
@devworld4170 13 днів тому
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.
@hashankannangara5812
@hashankannangara5812 Місяць тому
Can you provide a option to hide default back button in router options
@SwiftfulThinking
@SwiftfulThinking Місяць тому
This is not included because the native Navigation modifiers still work. You can use .toolbar or .navigationBar…
@user-lj3cw2yq3f
@user-lj3cw2yq3f Місяць тому
Can you provide a tutorial on using SwiftfulRouting with tabBar?
@SwiftfulThinking
@SwiftfulThinking Місяць тому
The same way you use NavigationStack with tabBar
@user-lj3cw2yq3f
@user-lj3cw2yq3f 2 дні тому
@@SwiftfulThinking How to go back to a certain view in the ScreenStack?
@junaedmuhammodchowdhury4335
@junaedmuhammodchowdhury4335 Місяць тому
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?
@SwiftfulThinking
@SwiftfulThinking Місяць тому
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
@junaedmuhammodchowdhury4335
@junaedmuhammodchowdhury4335 23 години тому
Does "NavigationLink" works with this?
@SwiftfulThinking
@SwiftfulThinking 23 години тому
Yes, but you don’t need to use it anymore
@hasanbasriozturk1550
@hasanbasriozturk1550 16 днів тому
this doesn't work when I move to a tabview from router view and put router views for each tabs
@SwiftfulThinking
@SwiftfulThinking 16 днів тому
It works the same as NavigationStack & NavigationView
How to use Lottie in SwiftUI | Swift Packages #6
15:18
Swiftful Thinking
Переглядів 2,8 тис.
Project Setup and Shared Components | SwiftUI in Practice #1
20:16
Swiftful Thinking
Переглядів 6 тис.
Get a knife! | Standoff 2
01:06
Standoff 2 Live
Переглядів 1,4 млн
顔面水槽がブサイク過ぎるwwwww
00:58
はじめしゃちょー(hajime)
Переглядів 36 млн
How to use SDWebImage in SwiftUI | Swift Packages #1
25:39
Swiftful Thinking
Переглядів 3 тис.
SwiftUI Tooltips with TipKit (Popover & Inline Tips)
16:17
Sean Allen
Переглядів 11 тис.
How to use SwiftfulUI in SwiftUI | Swift Packages #4
35:13
Swiftful Thinking
Переглядів 3,2 тис.
I've Tested Android Studio's New Code Companion Gemini
12:29
Philipp Lackner
Переглядів 12 тис.
Enum Navigation in iOS 16
14:19
Stewart Lynch
Переглядів 10 тис.
What is the Sendable protocol in Swift? | Swift Concurrency #11
17:09
Swiftful Thinking
Переглядів 10 тис.
Programmatic Routing in SwiftUI for TabView Apps in SwiftUI
29:53
azamsharp
Переглядів 1,9 тис.
How to use Keychain-Swift in SwiftUI | Swift Packages #3
21:06
Swiftful Thinking
Переглядів 1,9 тис.
Rebuild Bumble in SwiftUI (Part 3/5) | SwiftUI in Practice #9
35:11
Swiftful Thinking
Переглядів 1,1 тис.
Most overpowered way to build mobile apps?
8:33
Beyond Fireship
Переглядів 680 тис.
Get a knife! | Standoff 2
01:06
Standoff 2 Live
Переглядів 1,4 млн