Actually, I just changed the DispatchQueue.main.async to DispatchQueue.main.sync. Shouldn't be anything wrong with that, right? Anyway, thanks for your help!
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: