title: Embed PageViewController in ScrollView - Programmatically Swift 5
body: <p>I have a PageViewController which shows 4 four view Controllers horizontally,</p>
  
  <p>Can I embed all this viewControllers in a UIScrollView? It would be easier to manage some tasks.</p>
  
  <p>Till now I tried doing this in PageViewController, conforming the PageViewController to UIScrollViewDelegate: </p>
  
  <pre><code> for view in self.view.subviews {
              if let subView = view as? UIScrollView {
                  subView.delegate = self
                  subView.isScrollEnabled = true
                  subView.bouncesZoom = false
          }
      }
  </code></pre>
  
  <p>But it actually recognises the scrolling for the single ViewController and not for the entire stack of four VCs. 
  I'd like to have the contentSize of the ScrollView equal to the entire width of all viewControllers.</p>