title: Disable swipe down to dismiss gesture in page sheet modal with tableview
body: <p>Similar question to :
  <a href="https://stackoverflow.com/questions/56718552/disable-gesture-to-pull-down-form-page-sheet-modal-presentation/59462475#comment126863493_59462475">Disable gesture to pull down form/page sheet modal presentation</a></p>
  <p>Looking for functionality exactly like this, except with a tableview under the navigation controller:</p>
  <p><a href="https://i.stack.imgur.com/XvUbx.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XvUbx.gif" alt="enter image description here" /></a></p>
  <p>when I attempt to use the answer given, <code>touchesBegan</code> and <code>touchesEnded</code> do not get called, so I tried calling the functions in <code>scrollViewWillBeginDragging</code> and <code>scrollViewWillEndDragging</code> and while it does get called, it doesnt solve the issue. Scrolling the tableview will still close the modal most of the time.</p>
  <p>I do not want to present over full screen.<br />
  <code>isModalInPresentation</code> stops it from closing but the bounce down still attempts.  I want to stop that altogether.</p>
  <p>I want to be able to only close if the user presses cancel or actually grabs the navigation bar to close like in the gif, and swipes within the tableview to only scroll the tableview.  What else can I try?</p>