Question: 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.

```
let pageControl = UIPageControl.appearance()
pageControl.pageIndicatorTintColor = UIColor.lightGrayColor()
pageControl.currentPageIndicatorTintColor = UIColor.blackColor()
//pageControl.backgroundColor = UIColor.whiteColor()

```

As you can see I have commented out the `pageControler.backgroundColor = ...` 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:

[![](https://i.stack.imgur.com/iLPCG.png)](https://i.stack.imgur.com/iLPCG.png)

UPDATE:
I have looked at this similar question ([UIPageControl - How to make the background transparent?](https://stackoverflow.com/questions/21007434/uipagecontrol-how-to-make-the-background-transparent)) but this does not address the problem. I have used the following code in the AppDelegate but no luck. Here is the code used:

`pageControl.backgroundColor = UIColor.clearColor()`

UPADATE 2:
Here is the code used in the `viewDidLoad()`.

```
    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)

```

Answer: 
Let's concentrate on the white at the *top* of the view. You are saying:

```
self.pageViewController.view.frame = CGRectMake(0, 30, self.view.frame.width, self.view.frame.size.height - 60)

```

So with the number `30` you yourself are leaving a gap at the top: `self.pageViewController.view.frame` starts 30 pixels down from the top of `self.view`. Thus we see the color of `self.view` showing in the gap. If you don't like that color, change it by changing `self.view.backgroundColor`.
@matt helped me to get this answer, but for anyone reading this in the future who has the same problem to remove the white from the top and bottom of the screenshot in my question, all you need to do is, set the color of view to 'default' in the main.storyboard and in the ViewController that you using, change color using something like this: 

```
view.backgroundColor = UIColor(red: 0.3, green: 0.5, blue: 0.7, alpha: 100)

```

Hope this helps!