How to load a xib file from another controller without segue and not as a subview
<p>In my project I have a :</p>

<ul>
<li>Main.storyboard</li>
<li>a Controller "MapViewController" and his xib file</li>
<li>a Controller "ViewMapViewController" and his xib file</li>
</ul>

<p>What I'm trying to do is to call the xib file from the ViewMapViewController in the MapViewController but not as a subview, by the way is it possible?</p>

<p>I tried to do something like this :</p>

<pre><code>let viewMapViewController:ViewMapViewController = ViewMapViewController()
self.presentViewController(viewMapViewController, animated: true, completion: nil)
</code></pre>

<p>And it called it but there is a dark background and I don't know why.
At first I thought that it was because of a background color but it is not, I checked it.</p>

<p>So there are my files : </p>

<pre><code>class MapViewController: UIViewController, GIDSignInUIDelegate {

@IBOutlet weak var gmapView: GMSMapView!
var viewMapViewController: ViewMapViewController!

override func viewDidLoad() {
    super.viewDidLoad()

    let camera = GMSCameraPosition.cameraWithLatitude(-33.86, longitude: 151.20, zoom: 15)
    let mapView = GMSMapView.mapWithFrame(CGRectZero, camera: camera)
    mapView.setMinZoom(10, maxZoom: 15)
    mapView.myLocationEnabled = true
    self.view = mapView

    let marker = GMSMarker()
    marker.position = CLLocationCoordinate2DMake(-33.86, 151.20)
    marker.map = mapView
}

override func viewDidAppear(animated: Bool) {
    let viewMapViewController:ViewMapViewController = ViewMapViewController()
    self.presentViewController(viewMapViewController, animated: true, completion: nil)
}
</code></pre>

<p>And here my other file :</p>

<pre><code>class ViewMapViewController: UIViewController {

override func viewDidLoad() {
    super.viewDidLoad()
    // Do any additional setup after loading the view.
}

override func didReceiveMemoryWarning() {
    super.didReceiveMemoryWarning()
    // Dispose of any resources that can be recreated.
}
</code></pre>