Swiftui Wait 2 Seconds

[Solved] Swiftui Wait 2 Seconds | Swift - Code Explorer | yomemimo.com
Question : swiftui wait 2 seconds

Answered by : tony-sacco

DispatchQueue.main.asyncAfter(deadline: .now() + 2.0) {	Text("waited 2 seconds")
}

Source : https://stackoverflow.com/questions/59682446/https://stackoverflow.com/questions/59682446/how-to-trigger-action-after-x-seconds-in-swiftuihow-to-trigger-action-after-x-seconds-in-swiftui | Last Update : Sun, 14 Aug 22

Question : swift wait 5 seconds

Answered by : kristopher-wrobel

sleep(5). // Argument is number of seconds

Source : | Last Update : Mon, 19 Oct 20

Answers related to swiftui wait 2 seconds

Code Explorer Popular Question For Swift