Custom Pin In Map In Swift

Updated 28 October 2021


Hello guys, Today we learn about Custom Pin In Map In Swift.

In this blog, we will discuss how to set custom images on a map with a specific user location on Google Map. To set the custom images on the map we need GMSMarker() functionality.

What is Marker:-

To point to a single location and to highlight the specific user location on Google Maps. Google Maps provides a marker that is used to create a custom image of a pin on a map. To read more details, Please visit Google Map – Marker

Getting started:-

Create a new project from XcodeFile.

Step 1:- File -> New -> Project -> Choose IOS -> Choose App -> Next and add your project Name and create.

Step 2:- Install pod file to implement the Google Maps functionality in your code

How To install pod:-

  1. Open the terminal and copy your folder path
  2. Write-> pod init
  3. Write -> open pod file
  4. Add your pods into the podfile

5. And write -> pod install

Step 3:- Add the UIView() into your view control in the storyboard and set the GMSMapView, its class name.

Now you can use the google map functionality in your code

Step 4: Add the code for Custom Pin In Map in the view controller class.

Great!! we have done the code part, now run the project and see the result.



In this blog, we discussed Custom Pin In Map In Swift.

I hope this blog, will help you to get about Custom Pin In Map

Thanks for reading!!

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*

Be the first to comment.

Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home