I implemented google GMSPlacePickerViewController on one of my screens.
Now problems in Android, they show a confirmation window with the selected image of location and location, as shown below,

Where in iOS they donβt ask for it, In iOS I used below code,
// The code snippet below shows how to create and display a GMSPlacePickerViewController. @IBAction func pickPlace(_ sender: UIButton) { let config = GMSPlacePickerConfig(viewport: nil) let placePicker = GMSPlacePickerViewController(config: config) present(placePicker, animated: true, completion: nil) } // To receive the results from the place picker 'self' will need to conform to // GMSPlacePickerViewControllerDelegate and implement this code. func placePicker(_ viewController: GMSPlacePickerViewController, didPick place: GMSPlace) { // Dismiss the place picker, as it cannot dismiss itself. viewController.dismiss(animated: true, completion: nil) print("Place name \(place.name)") print("Place address \(place.formattedAddress)") print("Place attributions \(place.attributions)") } func placePickerDidCancel(_ viewController: GMSPlacePickerViewController) { // Dismiss the place picker, as it cannot dismiss itself. viewController.dismiss(animated: true, completion: nil) print("No place selected") }
Am I missing something in the above code?
ios google-maps google-places-api
Vandit mehta
source share