I have a view controller with a child view controller inside. This child view controller is a UITableView
.
When I present the view controller modally using the UIModalPresentationStyle.pageSheet
and the user drags down the UITableView
the whole view controller is dragged down and it ends up being dismissed.
I'm looking for a way to disable that gesture in the UITableView
. I found several posts on SO recommending to use isModalInPresentation = true
or just use .fullScreen
as UIModalPresentationStyle
but that's not what I need. I want the user to be able to dismiss the view controller with a gesture if the user drags down the presented view controller from the navigation bar but not from the UITableView
I've already checked:
- ios13 prevent pulling down on tableView which is scrolled to top from dismissing sheet style modally presented viewController
- Disable gesture to pull down form/page sheet modal presentation
But those two are not the same scenario.