I am studying the Instagram profile view.
What I want is a way to pass the touch event that occurs in the collectionview to the scrollview.
I want to use the default scroll of scrollview. Because for smooth scrolling
I think it should be passed to ScrollView using ResponderChain.
Since there are many views in the collectionview, hittest is not likely to be used.
How can I pass the touch event that happened in the collectionview to the scrollview?
If you can't pass the touchevent, do you have to move and animate scrollview offset directly using Pangesture?
in collectionView code
var scrollView: UIScrollView?
override var next: UIResponder? {
guard let scrollView = scrollView else {
return nil
}
return scrollView
}
I have failed with this code but any solution?
Thanks for viewing my question.
- I captured this moment.