I'm trying to reproduce the buttom sheet in Apple's iOS 10 Maps app. Most of it is working. I've been looking at this SO post and Pulley on GitHub, but none of them solves my issue.
When the sheets is fully opened, it is possible to scroll the content of the sheet as a UITableView
, but when the user tries to scroll down (where the UITableView
's contentOffset
would be negative), the gesture is dragging in the sheet instead of the UITableView
. The gesture seamlessly changes from dragging the UITableView
to dragging the sheet.
It is possiple disable the scrolling of the UITableView
in the gesture delegate's shouldRecognizeSimultaneouslyWith
, but this is only called when a gesture begins.
I can't control the panGestureRecognizer
of the UITableView
, so I can't just capture the gesture and determine what view it should move.
How can I change what UIGestureRecognizer
should recognize touches, in the middle of a gesture?