You can refresh the ScrollView from the child view by passing the parent's reference to the child view and updating the state of the parent from the child view.
Here's an example of how you can do this:
main.swift534 chars23 lines
In the example above, the ParentView has a @State variable called "refreshScrollView" that is passed as a binding to the ChildView. The ChildView contains a button that toggles the refreshScrollView binding when pressed. Toggling this binding state will update the ParentView's state causing the ScrollView to refresh.
gistlibby LogSnag