Post

Replies

Boosts

Views

Activity

Comment on ScrollViewProxy scrollTo in onAppear may cause state changes to be lost
Your answer and description of onAppear raises a few questions. Please note that the problem I described did not refer to the fact that no scrolling process may be triggered. This part works in the demo code and is not the actual issue. The main problem is that the change of state1 back to false in the defer code block does not update the view accordingly. This does not happen if you remove the scrollTo call in the onAppear method. Do you have an explanation for this?
Sep ’24