Im having an error while trying to animate a GMSMarker, I have followed the Google documentation and various guides but it keeps returning an error, below is my code:
func placeMarker(coordinate: CLLocationCoordinate2D) {
if locationMarker != nil {
locationMarker.map = nil
}
locationMarker = GMSMarker(position: coordinate)
locationMarker.icon = GMSMarker.markerImageWithColor(purple)
locationMarker.appearAnimation = kGMSMarkerAnimationPop
locationMarker.snippet = "The best place on earth."
locationMarker.map = mapView
}
Which returns the error Ambiguous use of 'kGMSMarkerAnimationPop'
Any help would be appriciated!