how to make delay in button action in swiftui code example
Example: swift + time delay call main thread
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
//Your code
}
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
//Your code
}