Custom Pin In Map In Swift


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.


It was a successful collaboration. The Mobikul team provided the client everything they needed in a timely and high-quality manner. They were very professional, reliable, and accessible during the entire process. The client also saw no room for any improvements in the vendor's performance.

Vincenzo Carrano

Vincenzo Carrano

Administrator, Segshop

Talk to Sales


Live Chat
Start a Project

    Message Sent!

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

    Back to Home