ios - GMSAutoCompleteViewController Crashing - Swift 3 -
i upgraded app swift 3 , has been crashing whenever has tried call autocomplete view controller in google maps. know api key isn't problem because working fine when using before upgraded swift 3 , xcode 8. know because app still able display google map. here code: extension additionalsetupviewcontroller: gmsautocompleteviewcontrollerdelegate { func viewcontroller(_ viewcontroller: gmsautocompleteviewcontroller, didautocompletewith place: gmsplace) { let locationcoordinate = place.coordinate if homeclicked { homeaddress = [locationcoordinate.latitude, locationcoordinate.longitude] } else if homeaddress == [] { } else { let coordstring = "\(locationcoordinate.latitude) \(locationcoordinate.longitude)".replacingoccurrences(of: ".", with: ",") // let coordstring = "\(locationcoordinate.latitude) \(locationcoordinate.longitude)".stringbyreplacingoc...