NavigationStack - iOS Deep Linking Example In iOS Shopping App 🔗

Поділитися
Вставка
  • Опубліковано 21 жов 2024

КОМЕНТАРІ • 24

  • @chris_bennett
    @chris_bennett Рік тому +1

    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 👌🏾

  • @thingsmymacdoes
    @thingsmymacdoes Місяць тому

    exactly what I was looking for !

  • @CourtlandBluford
    @CourtlandBluford Рік тому +3

    brilliant! thank you for breaking this down.

    • @tundsdev
      @tundsdev  Рік тому +2

      Glad you enjoyed it 🫡

  • @lukassbeataddicts
    @lukassbeataddicts Рік тому +2

    I already love it 3 minutes in.

    • @tundsdev
      @tundsdev  Рік тому +2

      Glad you enjoy it 🫡

  • @SHOLINGER
    @SHOLINGER Рік тому +1

    really useful , thanks for the information man !

    • @tundsdev
      @tundsdev  Рік тому +1

      Glad you enjoyed it 🫡

  • @sarimyx
    @sarimyx Рік тому +1

    Thanks!

    • @tundsdev
      @tundsdev  Рік тому

      Glad you’re enjoying it

  • @yurii_chynchyk
    @yurii_chynchyk Рік тому +1

    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

      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 Рік тому +1

      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 Рік тому +1

      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  Рік тому +2

      Decimal is more precise than float & double. If you ever work with money use this as your default type 🤝

    • @tundsdev
      @tundsdev  Рік тому +1

      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  Рік тому +1

      👋🏾 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
      ua-cam.com/play/PLvUWi5tdh92wWS3F-AVsCJHkhBlrkBp6f.html

  • @rungxanh2901
    @rungxanh2901 Рік тому +2

    Elegant tutorial as always Tunde 🫡