CollectionViewPagingLayout
CollectionViewPagingLayout copied to clipboard
Using ScrollViewReader
Hi,
I'm trying to user ScrollViewReader to a ScalePageView. The ScalePageView has an array of images
I have a standard iOS horizontal scroll view with icons. I would like to sync the the tap on the icon to the to the ScalePageView image. So that if the user taps icon 3, image 3 in ScalePageView gets tapped. I can do this if the images are also a ScrollView as it supports ScrollViewReader. But how to I sync the ScalePageView with the tap in the icon horizontal scroll view? And likewise, tapping an image in ScalePageView needs to cause the icon view to scroll to that tapped location.
Thanks.