How to use hidesBarsOnSwipe to hide the NavigationBar when UITableView is embedded into a UIPageViewController?
<p>Apple added this hidesBarsOnSwipe helper that is really nice to trigger a NavigationBar hide/show action when we scroll up and down in a list of items.</p>

<p>I have a UIPageViewController with many tableViews inside.
I would like to show/hide the navigation bar in exactly the same way hidesBarsOnSwipe does when I scroll up/down in my UITableView(s)</p>

<p>Unfortunately, When I set the following code in a UITableView class:</p>

<pre><code>  rootNavViewCtrl?.hidesBarsOnSwipe = true
  rootNavViewCtrl?.barHideOnSwipeGestureRecognizer.addTarget(self, action: #selector(didHideOnSwipe))

  func didHideOnSwipe() {
    log.debug("==== hide on swipe ====")
  }
</code></pre>

<p>It doesn't trigger the function.
It actually triggers the function only when I start an horizontal scroll swipe (I guess UIPageViewController triggers the gesture recognizer) and then end it by a motion in diagonal up or down...</p>

<p>Anybody have a clean solution for this?</p>