![swift - Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState] - Stack Overflow swift - Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState] - Stack Overflow](https://i.stack.imgur.com/teE1e.png)
swift - Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState] - Stack Overflow
![Using the MainActor attribute to automatically dispatch UI updates on the main queue | Swift by Sundell Using the MainActor attribute to automatically dispatch UI updates on the main queue | Swift by Sundell](https://www.swiftbysundell.com/images/articles/the-main-actor-attribute.png)
Using the MainActor attribute to automatically dispatch UI updates on the main queue | Swift by Sundell
![Xcode 14 warning --> " This method should not be called on the main thread as it may lead to UI unresponsiveness." – SwiftUI – Hacking with Swift forums Xcode 14 warning --> " This method should not be called on the main thread as it may lead to UI unresponsiveness." – SwiftUI – Hacking with Swift forums](https://i.stack.imgur.com/52mk5.png)
Xcode 14 warning --> " This method should not be called on the main thread as it may lead to UI unresponsiveness." – SwiftUI – Hacking with Swift forums
![Xcode 14.1] withCheckedContinuation's body will run on background thread in case of starting from main-actor - Using Swift - Swift Forums Xcode 14.1] withCheckedContinuation's body will run on background thread in case of starting from main-actor - Using Swift - Swift Forums](https://global.discourse-cdn.com/swift/optimized/3X/9/5/955d3f6953ba17208d0dc563aac2dc67d74f074a_2_690x345.png)
Xcode 14.1] withCheckedContinuation's body will run on background thread in case of starting from main-actor - Using Swift - Swift Forums
![Xcode 14.1] withCheckedContinuation's body will run on background thread in case of starting from main-actor - Using Swift - Swift Forums Xcode 14.1] withCheckedContinuation's body will run on background thread in case of starting from main-actor - Using Swift - Swift Forums](https://global.discourse-cdn.com/swift/optimized/3X/0/4/046e91f0ccbb0c90246a892b67497bd082cba63a_2_690x428.jpeg)