Reply to How to check for Main thread from the background? This can be done using completion handler. As soon as it gets the data, the data can be sent to the UI using the main thread (DispatchQueue.main.async{}). App & System Services Processes & Concurrency Mar ’21