Main Thread Checker: UI API called on a background thread in 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.
}