I am getting this error even though my UI updates on
DispatchQueue.main.async {
}
I tried to find out the thing which is causing this warning and freezes the app. I am attaching screenshot for more details. Can anyone help to figure out the issue? I tried to look on this Main Thread Checker: UI API called on a background thread: -[UIApplication delegate] Freezes the application and this Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState] but it didn't help.