我在我的項目中使用了這段代碼。我已經導入了UIKit和GoogleMaps,但是由於「使用未解析的標識符CLLocationCoordinate2D」而出現錯誤。請幫我解決這個問題爲什麼我使用未解析的標識符'CLLocationCoordinate2D'出現錯誤?
類的ViewController:UIViewController的{
override func viewDidLoad() {
super.viewDidLoad()
let camera = GMSCameraPosition.camera(withLatitude: -33.86, longitude: 151.20, zoom: 6.0)
let mapView = GMSMapView.map(withFrame: CGRect.zero, camera: camera)
let view = mapView
// Creates a marker in the center of the map.
let marker = GMSMarker()
marker.position = CLLocationCoordinate2D(latitude: -33.86, longitude: 151.20)
marker.title = "Sydney"
marker.snippet = "Australia"
marker.map = mapView
}
}