How to deselect a GMSMarker after removing custom infowindow in google maps swift
问题 So I have been using Google Maps iOS SDK 4.0.0 and my requirement is like this when I tap on a marker it should add UIViewContoller's view which I easily achieved. Take a look on the following code: var customeVC:CustomViewController? func mapView(_ mapView: GMSMapView, didTap marker: GMSMarker) -> Bool { customeVC = CustomViewController(nibName: "CustomViewController", bundle: nil) customeVC?.delegate = self self.addChild(customeVC!) customeVC?.view.frame = self.view.frame self.view