9. MapKit with SwiftUI - Routes and Directions

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024

Комментарии • 9

  • @TimMitra
    @TimMitra 2 месяца назад

    What would be the difference if you used Bindable showRoute instead of Binding? Is the former meant to be used with a model, not a property?

    • @StewartLynch
      @StewartLynch  2 месяца назад

      See Paul Hudson, blog Tim for a good explanation. www.hackingwithswift.com/quick-start/swiftdata/whats-the-difference-between-bindable-and-binding

  • @paya_herp_derp
    @paya_herp_derp 2 месяца назад

    Is there a way to display an icon for each direction step that shows the turn to make / roundabout exit to take? The native Apple Maps app can do that. Parsing the 'instructions' property is probably not the best way because that string is localized, isn't it?

    • @StewartLynch
      @StewartLynch  2 месяца назад

      I didn’t find that in the API. I will update this post if I can find it.

  • @ankeecodeverse
    @ankeecodeverse 6 месяцев назад

    ❤❤❤

  • @nickcandello6602
    @nickcandello6602 19 дней назад

    Is there a way to have first person turn by turn directions? Similar to a gps app

    • @StewartLynch
      @StewartLynch  19 дней назад

      Do you mean as you are approaching, let you know what the next step is? This would be very difficult to do, if not impossible with the current API

    • @nickcandello6602
      @nickcandello6602 19 дней назад

      @@StewartLynch is the entire list of steps in a route not accessible on creation of the route?

    • @StewartLynch
      @StewartLynch  19 дней назад

      Yes. I show that in the series.