Add Markers / Annotation on a Map with Long Tap Gesture in Swift - Apple Maps

Опубликовано: 28 Сентябрь 2024
на канале: R&D Labs with Rohant
5,166
54

Maps Series: Tutorial 5 📝

Tutorial 1 Link:    • How to get current user's location an...  
Tutorial 2 Link:    • How to use Places API and Directions ...  
Tutorial 3 Link:    • How to get current user's location an...  
Tutorial 4 Link:    • How to use MKDirections and Geocoding...  

In this tutorial we'll see how to capture the the coordinates using the Long Tap Gesture on an Apple Map and adding a Marker / Annotation on the tapped location.

This tutorial is the fifth in the series of implementing various types of Maps in Swift, so make sure you have subscribed 👆to our channel and you have hit the notification button 🔔

📌Recap of Tutorial 4 from 00:21
📌Preface of the current tutorial from 01:09
📌Adding Delegate for Gesture Recognizer from 01:24
📌Binding the Gesture to the Apple Map from 01:59
📌Fetching the coordinates from the Tapped Location from 03:02
📌Adding the Annotation / Marker on the Tapped Location from 07:29
📌Demo, Showing MapView with Long Tap Gesture enabled from 09:51

We upload new videos every week!

Please reach out to me on the comments section if you have any doubts on this topic. Also, please Like & Subscribe the Channel and help us being part of your journey to learn Swift. Cheers until the next video!

#LongTapGesture #AppleMaps #Gesture #Swift