I am using `UIActivityIndicatorView` inside the `UISplitViewController`'s detail view and its not centering, its more aligned to the right, here is my code that adds the `UIActivityIndicatorView`:

```
indicator = UIActivityIndicatorView(frame: CGRect(x: 0, y: 0, width: 100, height: 100)) as UIActivityIndicatorView

        //Set the activity indicator center

        indicator.center = self.view.center

        //Hide the indicator when its stopped.

        indicator.hidesWhenStopped = true

        //Set the style of the activity indicator

        indicator.style = UIActivityIndicatorView.Style.white

        //Set the background colour of the activity indicator

        indicator.backgroundColor = UIColor(white: 0.0, alpha: 0.6)

        //Make the activity indicator have rounded corners

        indicator.layer.cornerRadius = 15

        //Add activity indicator to view

        self.view.addSubview(indicator)

        //Start activity indicator

        self.indicator.startAnimating()

```

How come its not centering?