I want to implement a visual effect as below the gif shows:
And I try to use a ZStack which wraps a title bar view and a ScrollView, and the opacity of the title bar changes with the scroll offset changes, is there a way to get the current offet of the ScrollView?