title: When implementing custom view controller presentations, where to apply presented view's constraints?
body: <p>When presenting a view controller using a custom animation, none of Apple's documentation or example code mentions or includes constraints, beyond the following:</p>
  
  <pre><code>// Always add the "to" view to the container.
  // And it doesn't hurt to set its start frame.
  [containerView addSubview:toView];
  toView.frame = toViewStartFrame;
  </code></pre>
  
  <p>The problem is that the double-height status bar is not recognized by custom-presented view controllers (view controllers that use non-custom presentations don't have this problem). The presented view controller is owned by the transition's container view, which is a temporary view provided by UIKit that we have next to no dominion over. If we anchor the presented view to that transient container, it only works on certain OS versions; not to mention, Apple has never suggested doing this.</p>
  
  <p><strong>UPDATE 1:</strong> There is no way to consistently handle a double-height status bar with custom modal presentations. I think Apple botched it here and I suspect they will eventually phase it out.</p>
  
  <p><strong>UPDATE 2:</strong> The double-height status bar has been phased out and no longer exists on non-edge-to-edge devices.</p>