My GUI involves a button as well as text. When the button is pressed, it triggers a function which modifies a string state over and over. The text being displayed is that state variable but during the function call the view does not update although the function is altering the state. After the function call I can see the text update with the final value of this state but I miss all the intermediary values while staring at a frozen view. Is there any way to update the view each time the value is changed?