I'm having the same problem. I've tried both DispatchQueue.main.async{} and Task{}.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: