How to make the View update instant in SwiftUI?
问题 I have a Text that acts as a timer with different values of my array. And it displays with timerIntervalSinceNow . The problem is when it reaches zero it should show zero to but that does not happen before clicking again on the screen. If I do not click on it it keeps going up since it is timeIntervalSinceNow , but when I click it switches to the Text with 0 sec . Any way on telling SwiftUI to do this by itself without clicking? if(exerciseTime[value].timeIntervalSinceNow > 0) { Text