title: How to full screen layout to a view in Swift?
body: <p>Im trying to my MapView fill on screen on ipad, iphone or landspace..
  I set constraints like this</p>
  
  <p><img src="https://i.stack.imgur.com/qeVlL.png" alt="image">.</p>
  
  <p>Its working on first time but I rotate device its not fill screen. Why? How I set the view fill the screen on storyboard or code?</p>
  
  <p><a href="https://i.stack.imgur.com/ZyyIy.png" rel="nofollow noreferrer">this is how to look my constraints</a></p>
  
  <p>I use this code in ViewDidLoad:</p>
  
  <pre><code>googleMapsView.frame = view.bounds
  </code></pre>
  
  <p>Its working first load. And I search rotate function and try this on that:</p>
  
  <pre><code>override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
      googleMapsView.frame = view.bounds        
  }
  </code></pre>
  
  <p>Its not working again..</p>