swift UI API called on a background thread: -[UITextView setText:] code example
Example: UI API called on a background thread
DispatchQueue.main.async {
//Do UI Code here.
//Call Google maps methods.
}
DispatchQueue.main.async {
//Do UI Code here.
//Call Google maps methods.
}