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