title: Swift default AlertViewController breaking constraints
body: <p>I am trying to use a default AlertViewController with style <strong>.actionSheet</strong>. For some reason, the alert causes a <strong>constraint error</strong>. As long as the alertController is not triggered (displayed) through a button, there are no constraint errors on the whole view. Could it be that this is a <strong>bug of Xcode?</strong></p>
  
  <p>The exact error I get looks like this:</p>
  
  <pre><code>2019-04-12 15:33:29.584076+0200 Appname[4688:39368] [LayoutConstraints] Unable to simultaneously satisfy constraints.
      Probably at least one of the constraints in the following list is one you don't want. 
      Try this: 
          (1) look at each constraint and try to figure out which you don't expect; 
          (2) find the code that added the unwanted constraint or constraints and fix it. 
  (
      "&lt;NSLayoutConstraint:0x6000025a1e50 UIView:0x7f88fcf6ce60.width == - 16   (active)&gt;"
  )
  
  Will attempt to recover by breaking constraint 
  &lt;NSLayoutConstraint:0x6000025a1e50 UIView:0x7f88fcf6ce60.width == - 16   (active)&gt;
  
  </code></pre>
  
  <p>This is the code I use:</p>
  
  <pre><code>@objc func changeProfileImageTapped(){
          print("ChangeProfileImageButton tapped!")
          let alert = UIAlertController(title: "Change your profile image", message: nil, preferredStyle: .actionSheet)
  
          alert.addAction(UIAlertAction(title: "Photo Library", style: .default, handler: nil))
          alert.addAction(UIAlertAction(title: "Online Stock Library", style: .default, handler: nil))
          alert.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: nil))
          alert.view.tintColor = ColorCodes.logoPrimaryColor
  
          self.present(alert, animated: true)
      }
  </code></pre>
  
  <p>As you can see, it is <strong>very basic</strong>. That's why I am very confused about the strange behavior I get as this <strong>default implementation</strong> should not cause any errors, right?</p>
  
  <p><a href="https://i.stack.imgur.com/FTZFV.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FTZFV.png" alt="Output I get"></a></p>
  
  <p>Although, through breaking the constraints, the alert displays properly on all screen sizes I would be really thankful for any help I get.</p>