harmash, 4 months ago Sometimes you have to use things like Task.sleep() in a #swiftui app, no way around it, especially if the app has a lot of animations. Here is a helper func to convert seconds → nanoseconds that sleep() requires 🙌
Sometimes you have to use things like Task.sleep() in a #swiftui app, no way around it, especially if the app has a lot of animations. Here is a helper func to convert seconds → nanoseconds that sleep() requires 🙌
Task.sleep()
sleep()