I am also trying to implement similar functionality and our approaches are very similar.
In the standard scrollview, you can achieve the result if you create your own custom scrollview and override the
touchesCancelled (_: with :)
method and
return true
In your example, I tried to set headerView through my custom scrollview, but it didn’t bring the desired result. I will continue to think about solving this problem.
Sorry, My post on stackoverflow has been deleted
so I have to write to you here
I am also trying to implement similar functionality and our approaches are very similar.
In the standard scrollview, you can achieve the result if you create your own custom scrollview and override the
touchesCancelled (_: with :)
method and
return true
In your example, I tried to set headerView through my custom scrollview, but it didn’t bring the desired result. I will continue to think about solving this problem.
Sorry, My post on stackoverflow has been deleted so I have to write to you here