NavigationStack - iOS Deep Linking Example In iOS Shopping App 🔗

  Рет қаралды 8,802

tundsdev

tundsdev

Күн бұрын

NavigationStack - iOS Deep Linking Example In iOS Shopping App 🔗
**********************************
Timestamps:
00:00:00 - Intro
00:00:52 - What Is Deeplinking?
00:01:48 - Brief Project Breakdown
00:02:36 - How To Configure Universal Links In Xcode
00:04:43 - Testing out Deep Links 3 Ways
00:05:19 - How To Test Deep Links using the Reminders app
00:06:49 - How To Test Deep Links In iOS Using Terminal
00:08:15 - How To Test Deep Links on iOS Using RocketSim
00:12:21 - How To Deep Link To A Screen In SwiftUI
00:18:09 - Building Our Deep Link Finder
00:25:14 - How To Pass Data In A Deep Link In Swift
00:34:10 - Manipulating the NavigationStack via a Deep Link
00:41:36 - How To Fetch A Single Product Using A Deep Link
00:51:40 - Handling Invalid Products Using Deep links
00:55:47 - How To Use ShareLink In SwiftUI To Share A Product
01:06:57 - How To Write Unit Tests In Swift For Our Route Finder
01:14:02 - Summary
Enjoying the video? Then why stop here 🤷🏾‍♂️
Enjoy rest of this course here in this playlist 👇🏾
Become A SwiftUI Navigation Pro (All Levels | SwiftUI Navigation Stack | iOS Deep Links | iOS Push Notifications | SwiftUI Multiplatform)
• SwiftUI NavigationStac...
**********************************
If you're looking to enhance the functionality of your SwiftUI iOS apps by allowing users to access specific content within the app via a URL link, you've come to the right place! In this tutorial, we'll show you how to enable ios deep linking in your SwiftUI app, step-by-step.
We'll start by explaining what ios deep linking is and why it's beneficial for app users, before diving into the implementation details. We'll cover everything you need to know, including how to create custom URL schemes, handle incoming links using the SwiftUI onOpenURL modifier in SwiftUI, and use environment objects to make the implementation clean and efficient. Throughout this iOS shopping app tutorial.
By the end of this tutorial, you'll have a solid understanding of how to enable deep linking in your SwiftUI app, and how to use it to improve the user experience. Whether you're an experienced iOS developer or just starting out with SwiftUI, this video is perfect for anyone looking to take their app development skills to the next level. So why wait? Watch now and learn how to enable deep linking in your SwiftUI iOS apps!
**********************************
Check Out My Courses 👨🏽‍🏫
Enjoy my teaching style? Check out my other courses on my website that may interest you, they range from beginner to advanced topics within iOS development.
Link to Website
tunds.dev/#courses
**********************************
Join the crew 🤝
Want to help support the channel? Become a member with the join link below and get access to exclusive badges and stickers, as well as other perks that are coming soon.
Become a channel member
www.youtube.com/@tundsdev/join
Support in other ways 💕
You can support me for free and help the channel grow so that I can continue to make the best iOS development content for you by liking, commenting, subscribing, and hitting the notification bell.
All of this really helps my channel grow and allows me to keep on making content for you. If you’re interested in subscribing to the channel then you can do so with the link below.
Subscribe to the tundsdev KZfaq channel
kzfaq.info?su...
**********************************
Download Source Code
Interested in looking at the source code? Then check out the GitHub Repo below
github.com/tunds
**********************************
EditorKeys
View Editor Keys Amazing Products with the link below and use the discount code for 10% off any product
www.editorskeys.com/tundsdev
Get a 10% Discount Code on any product with the code below
TUNDSDEV
See my keyboard cover in action with my review below 👇🏾
• Increase Your Xcode Pr...
**********************************
#iosdev #iosdevelopment #swift #swiftlanguage #xcode #appdevelopment #mobileappdevelopment #iosappdevelopment #appdeveloper #iosprogramming #iosengineer #appdevelopmenttips #iosdevelopmenttips #swiftui

Пікірлер: 23
@CourtlandBluford
@CourtlandBluford Жыл бұрын
brilliant! thank you for breaking this down.
@tundsdev
@tundsdev Жыл бұрын
Glad you enjoyed it 🫡
@chris_bennett
@chris_bennett Жыл бұрын
I ❤ all of your videos but this series may be the best one yet - at least for my needs 🤩
@tundsdev
@tundsdev Жыл бұрын
Glad you’re enjoying it 👌🏾
@SHOLINGER
@SHOLINGER Жыл бұрын
really useful , thanks for the information man !
@tundsdev
@tundsdev Жыл бұрын
Glad you enjoyed it 🫡
@lukassbeataddicts
@lukassbeataddicts Жыл бұрын
I already love it 3 minutes in.
@tundsdev
@tundsdev Жыл бұрын
Glad you enjoy it 🫡
@sarimyx
@sarimyx Жыл бұрын
Thanks!
@tundsdev
@tundsdev Жыл бұрын
Glad you’re enjoying it
@yurii_chynchyk
@yurii_chynchyk Жыл бұрын
Well that took quite some time to go through all of it :D But again that was a great episode ! Thanks for covering the topic of DeepLinks. It was really interesting and moreover - really useful. That was a lot of code but I think you've covered it with more that enough of explanations trying to comment almost every step you've been doing. Every method has been explained step by step. That's more than valuable. Anyway I made huge pile of notes and comment outs during the lesson not to forget what and why has been done! You really seem to like Extensions : ) that makes the code really pleasant to read -is a good lesson too. Now few questions below if you don't mind.
@yurii_chynchyk
@yurii_chynchyk Жыл бұрын
1. Decimal Type. I noticed that before but forgot to ask. You don't use Double even though there's no precise calculations. Once I've seen a comment from a guy on Reddit that pros are not using Double in real world app development. Especially if it's related to financial calculations. Only Decimal because they're more precise. I remembered that and now I noticed that in your code even though it's still an educational type of app. So as I understand it's a habit already and hence Decimals? So does that mean using Double makes no sense at all for us learners and we can simply forget about it and build a habit to use Decimal?
@yurii_chynchyk
@yurii_chynchyk Жыл бұрын
2. Extension from the last part of the lesson. Something like this ? extension View { func shareLink(for item: any MenuItem) -> some View { toolbar { ToolbarItem(placement: .primaryAction) { if let deeplink = Route.buildDeepLink(from: .menuItem(item: item)) { ShareLink(item: deeplink) { Image(systemName: "square.and.arrow.up") ... } and in use just like this .navigationTitle(food.title) .shareLink(for: food)
@yurii_chynchyk
@yurii_chynchyk Жыл бұрын
3. In your project navigator there's a file "Info.plist". I've been waiting for you to cover how or what for it appeared in the project but you've been silent about it. In the end I noticed that URLTypes for our DeepLinks appeared in the List inside this file but it's a mysterious thing. I've been trying to rename the project cause all the files have the same names. But after I did renaming there was a problem with this one file. Even renaming it to refer to project new file name wasn't working. Xcode is complaining that file is missing and you need to get it back. So the only way was to keep the original name "Introduction-to-NavigationStack-Info.plist" even if I called everything else "DeepLinking". Why this one is so stubborn ? I know it is generated for specific reasons and can contain some peculiar permissions for app to be able to do this and that. Once I tried to make a small MacApp with help of GPT to prevent laptop from going to sleep if lid is closed. So one of key parts was to get the permission to dig "under the hood" using system low level commands to make it work. And Info.plist was needed for that. I couldn't do that, not my level atm. So what is this mysterious thing ? Seems like no one puts enough info about it and even GPT is not able to give all the answers how to generate it, use it and else. Maybe you will have time to explain about a thing. Thanks in advance!
@tundsdev
@tundsdev Жыл бұрын
Decimal is more precise than float & double. If you ever work with money use this as your default type 🤝
@tundsdev
@tundsdev Жыл бұрын
Not at my comp right now but yep exactly that 🫡
@SHOLINGER
@SHOLINGER Жыл бұрын
the video is really helpful But here is the thing which I want to do let's assume there is a screen with swiftUI list and inside the list there are items which are named as Instagram and linkedIn and TikTok so if I click on the item named Instagram in the list it should open the Instagram app present in my mobile how can I do that ? thanks in advance for your help !!!!
@tundsdev
@tundsdev Жыл бұрын
👋🏾 if you do a search in google to see how to open those apps in swift you’ll see a whole load of examples. The problem with this approach is you need to either open a custom url scheme or if you just try opening the website 9/10 if the usr has the app installed on their device it will open up the app for you too. Good luck and to learn even more about navigation in swiftui check out my playlist below kzfaq.info/sun/PLvUWi5tdh92wWS3F-AVsCJHkhBlrkBp6f
@rungxanh2901
@rungxanh2901 Жыл бұрын
Elegant tutorial as always Tunde 🫡
@tundsdev
@tundsdev Жыл бұрын
Thanks 🫡
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 15 МЛН
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 68 МЛН
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 7 МЛН
Vince Vaughn Catches a Hot Streak While Eating Spicy Wings | Hot Ones
26:04
First We Feast
Рет қаралды 3,1 МЛН
Play: The Secret Weapon for iOS Devs & Designers
10:12
Sean Allen
Рет қаралды 24 М.
What's going on with Windows Laptops?
10:30
Marques Brownlee
Рет қаралды 2,6 МЛН
STOP Using MVVM with SwiftUI
18:30
azamsharp
Рет қаралды 16 М.
Deep dive into Flutter deep linking
13:22
Flutter
Рет қаралды 37 М.
Is this my Fault?
15:41
Linus Tech Tips
Рет қаралды 2 МЛН
Universal links (Associated Domains, apple-app-site-association)
14:18
Егор Баринов
Рет қаралды 4 М.
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 15 МЛН