Main Thread Checker: UI API called on a background thread: -[UIView setNeedsDisplay] swift 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.
}