title: Remove white background from page view controller indicator
body: <p>Is it possible to remove the white background from the UIPageViewController indicator? Here is the code that I am using below. The code snippet below is from the AppDelegate script.</p>
  
  <pre><code>let pageControl = UIPageControl.appearance()
  pageControl.pageIndicatorTintColor = UIColor.lightGrayColor()
  pageControl.currentPageIndicatorTintColor = UIColor.blackColor()
  //pageControl.backgroundColor = UIColor.whiteColor()
  </code></pre>
  
  <p>As you can see I have commented out the <code>pageControler.backgroundColor = ...</code> line to see if that would change but no. I am using Swift in Xcode. Here is a screenshot to show you what I mean:</p>
  
  <p><a href="https://i.stack.imgur.com/iLPCG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iLPCG.png" alt=""></a></p>
  
  <p>UPDATE:
  I have looked at this similar question (<a href="https://stackoverflow.com/questions/21007434/uipagecontrol-how-to-make-the-background-transparent">UIPageControl - How to make the background transparent?</a>) but this does not address the problem. I have used the following code in the AppDelegate but no luck. Here is the code used:</p>
  
  <p><code>pageControl.backgroundColor = UIColor.clearColor()</code></p>
  
  <p>UPADATE 2:
  Here is the code used in the <code>viewDidLoad()</code>.</p>
  
  <pre><code>    self.pageViewController.setViewControllers(viewControllers as? [UIViewController], direction: .Forward, animated: true, completion: nil)
  
      self.pageViewController.view.frame = CGRectMake(0, 30, self.view.frame.width, self.view.frame.size.height - 60)
  
      self.addChildViewController(self.pageViewController)
      self.view.addSubview(self.pageViewController.view)
      self.pageViewController.didMoveToParentViewController(self)
  </code></pre>