Delaying execution of code in SwiftUI Nov 21, 2020 DispatchQueue.main.asyncAfter(deadline: .now() + 2) { self.showProgress = false }