title: iPhone X - safe area layout guides - I want my app display on full screen, not only in the safe area
body: <p>I have a problem with my code. My application displays within iOS safe area layout guide, however I'd like to force it to display "outside". I have searched the internet and unfortunately I found only "reverse" problems. I don't use interface builder, all my views I create programmatically. I have a main view controller which starts up automatically with the app and from here I start creating all my stuff. My interface builder just shows this view controller and a view assigned to it. Interestingly, the view appears to be really full screen when viewed in IB. </p>
  
  <p>Yes, I tried turning on/off the "Use Safe Area Layout Guide" option for the view. Also I tried to use topLayoutGuide and bottomLayout guide instead and constrain the main view to them, but it still fails:</p>
  
  <pre><code>- (void)viewDidLoad {
       [super viewDidLoad];
       UILayoutGuide *margins = self.view.safeAreaLayoutGuide;
       [NSLayoutConstraint activateConstraints:@[[self.view.topAnchor constraintEqualToAnchor:self.topLayoutGuide.topAnchor],
                                            [self.view.bottomAnchor constraintEqualToAnchor:self.bottomLayoutGuide.bottomAnchor]
                                            ]];
  
       //...
  }
  </code></pre>
  
  <p>This is what I see in the IB:</p>
  
  <p>1) view</p>
  
  <p><a href="https://i.stack.imgur.com/8eWFP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8eWFP.png" alt="enter image description here"></a></p>
  
  <p>2) safe area - I can't get rid of it in any way:</p>
  
  <p><a href="https://i.stack.imgur.com/gJ6mL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gJ6mL.png" alt="enter image description here"></a></p>
  
  <p>3) result (simulator / real device):</p>
  
  <p><a href="https://i.stack.imgur.com/sliCw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sliCw.png" alt="enter image description here"></a></p>
  
  <p>I also did RTFM but a) I'm stupid, b) I'm too tired, c) both</p>
  
  <p>Any help would be appreciated :)</p>