IB Designables: Failed to render and update auto layout status for Google Maps
Create Subclass of GMSMapView and use that class name instead of GMSMapView. after adding this error will not occur and whole storyboard is working.
import GoogleMaps
class GoogleMapView : GMSMapView {
}
Use GMSMapView manually by writing code in simulator; Instead of using GMSMapView
in storyboard.
If you are using maps in multiple screen. then write code manually for all file.
@IBOutlet weak var map_Views: UIView!
var map_View = GMSMapView()
override func viewDidLoad() {
super.viewDidLoad()
let camera = GMSCameraPosition.camera(withLatitude: Double(main_latitude)!, longitude: Double(main_longitude)!, zoom: 6.0)
map_View = GMSMapView.map(withFrame: CGRect.zero, camera: camera)
map_Views = map_View
map_View.camera = GMSCameraPosition.camera(withLatitude:Double(main_latitude)!,
longitude:Double(main_longitude)!,
zoom:10.0,
bearing: 0,
viewingAngle: 0)
}