title: How to add a background video view behind a UIPageViewController?
body: <p>I have a login flow that has a video playing in the background, and pages of text on top of that fixed video, and the final page is the login form.</p>
  
  <p>I've managed to build the page scroll, but each page has its own background and I'm kinda lost to find out how to make a view fixed with a looping video on bg, and transparent pages scrolling horizontally on top of that.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>My storyboard is like this:
  <a href="https://i.stack.imgur.com/I3AyM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I3AyM.png" alt="storyboard"></a>
  And my BootViewController is implementing page handlers.</p>
  
  <pre><code>import UIKit
  
  class BootViewController: UIPageViewController, UIPageViewControllerDataSource {
  
  override var preferredStatusBarStyle: UIStatusBarStyle {
      return .lightContent
  }
  
  override func viewDidLoad() {
      super.viewDidLoad()
      // Do any additional setup after loading the view.
  
      dataSource = self
  
      setViewControllers([UIStoryboard(name: "Boot", bundle: nil).instantiateViewController(withIdentifier: pages[0])], direction: .forward, animated: true, completion: nil)
  
  }
  
  override func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
      // Dispose of any resources that can be recreated.
  }
  
  let pages = [
      "IntroPageOne",
      "IntroPageTwo",
      "LoginController"
  ]
  
  func pageViewController(_ pageViewController: UIPageViewController, viewControllerBefore viewController: UIViewController) -&gt; UIViewController? {
  
      let currentViewControllerIdentifier = viewController.restorationIdentifier
  
      var previousViewController = pages.index(of: currentViewControllerIdentifier!)! - 1
  
      if previousViewController &lt; 0 {
          previousViewController = pages.count - 1
      }
  
      let previousViewControllerIdentifier = pages[previousViewController]
  
  
      return UIStoryboard(name: "Boot", bundle: nil).instantiateViewController(withIdentifier: previousViewControllerIdentifier)
  }
  
  func pageViewController(_ pageViewController: UIPageViewController, viewControllerAfter viewController: UIViewController) -&gt; UIViewController? {
  
      let currentViewControllerIdentifier = viewController.restorationIdentifier
  
      var nextViewController = pages.index(of: currentViewControllerIdentifier!)! + 1
  
      if nextViewController &lt; 0 {
          nextViewController = 0
      }
  
      if nextViewController &gt;= pages.count {
          nextViewController = 0
      }
  
      let nextViewControllerIdentifier = pages[nextViewController]
  
  
      return UIStoryboard(name: "Boot", bundle: nil).instantiateViewController(withIdentifier: nextViewControllerIdentifier)
  }
  }
  </code></pre>
  
  <p>I'm lost on how to create a subview and add (link) to my bootController.</p>