Your First iOS and SwiftUI App · Writing Methods |

This is a companion discussion topic for the original entry at

I’m wondering once i tap hit me button alertIsVisible = true then i close popup and start dragging slider. In this case, sliderValue will be changed accordingly and make body refresh but why the popup did not prompted again while alertIsVisible is still true. I think it will but it does not


1 Like

I have the same question as above. At what point do we update the alertIsVisible value to false so that UI remains consistent?