I noticed that with an update to xcode 9, a run-time warning message pops up when presenting Google Place Picker:
UI API called from background thread
present(GooglePlacePicker, animated: true, completion: nil)
I am pretty certain that I am calling that from the main thread, but in case I wasn't I tried fetching main thread first:
DispatchQueue.main.async(execute: {
self.present(self.GooglePlacePicker, animated: true, completion: nil)
})
I noticed that this is only an issue for Google Place Picker, as I've tried the same thing with Google Autocomplete and I receive no such warning. I'd imagine that this may have something to do with additional UI components in Place Picker built in to the iOS SDK but was wondering if anybody was able to prevent this warning. Otherwise, I would assume that Google would address this in the next SDK release.