Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState] Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState] swift swift