I want to display google maps on a view that\'s then added to self.view, rather than drawing the map directly on self.view. Therefore, I created a
We can use zPosition in iOS.
If we have a view named salonDetailView, eg:
@IBOutlet weak var salonDetailView: UIView!
in my case see the image
and have UIView for GMSMapView, eg:
@IBOutlet weak var mapViewUI: GMSMapView!
To show salonDetailView upper of the mapViewUI use zPosition as below:
salonDetailView.layer.zPosition = 1