Closed tsonobe1 closed 1 year ago
https://www.hackingwithswift.com/forums/swiftui/have-a-button-outside-of-scrollviewreader-be-able-to-scroll-the-scrollview-to-a-position/2741
.onChange(of: )の引数に、ScrollViewReaderの外側のボタンで変更させるプロパティを指定することで、外側のButtonでスクロールさせられる
https://www.hackingwithswift.com/forums/swiftui/have-a-button-outside-of-scrollviewreader-be-able-to-scroll-the-scrollview-to-a-position/2741