GIF Image as Marker in Google Map for iOS (Swift)

GIF Image as Marker in Google Map for iOS (Swift)

I've this gif image:

I've this gif image:

 

I am able to add a custom static image as marker using the following code:

if let location = locationManager.location {
            currentLocationMarker = GMSMarker(position: location.coordinate)
            currentLocationMarker?.icon = UIImage(named: "user")
            currentLocationMarker?.map = mapView
            currentLocationMarker?.rotation = locationManager.location?.course ?? 0
        }

I want to use this gif image as marker. Is there anyway? Though I know static images are encouraged but is there a possibility?

I was thinking of adding a UIView say a 100x100 view and animating this icon in it, haven't tried it but I tried the solution mentioned in this thread: How to load GIF image in Swift? as:

let jeremyGif = UIImage.gifImageWithName("puppy")
let imageView = UIImageView(image: jeremyGif)
imageView.frame = CGRect(x: 0, y: 0, width: jeremyGif?.size.width ?? 100.0, height: jeremyGif?.size.height ?? 100.0)
//view.addSubview(imageView)
//mapView.addSubview(imageView)

if let location = locationManager.location { currentLocationMarker = GMSMarker(position: location.coordinate) currentLocationMarker?.icon = imageView.image //UIImage(named: "user") currentLocationMarker?.map = mapView currentLocationMarker?.rotation = locationManager.location?.course ?? 0 }

but doing so also doesn't work. I've added this gif image in assets and this is how it appears in it:


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

React Apps with the Google Maps API and google-maps-react

This tutorial aims at integrating the google maps API to your React components and enabling you to display maps on your website.

iOS App Development: How Apple's iOS 13 & Swift 5 Will Change App Development Industry

Want to know how Apple's iOS 13 & Swift 5 will change the iOS app development industry? Refer to this blog that contains in-detail information on it.

Is it possibile to add a google calendar to an iOS app?

<span style="color: rgb(36, 39, 41);">I am trying to have section of my app which display a google calendar which will sync with event added to google calendar. Basically my goal is to give to all users the possibility to check the events added from the app administrator. So for example I add an event directly form calendar.google.com/calendar and all the app user can see it. Is it possible to achieve it? If not with google do you know any other way to do so? Thank you all!</span>