Is there a difference between DispatchQueue.main.async and Dispatch.main.asyncAfter(.now(),{})
My question is specifically about asyncAfter with .now() as the delay time.
The second question is if both methods allow the current UI thread to end before executing the closure in the next runloop?
I find that displaying an alert using UIAlertController in the closure of the former causes some erratic behavior. And with the latter, together with a delay of about 0.3 seconds, it works well.