Odd top margin l in compact style of iMessage extension
<p>I met a problem that there is a blank top margin in MSMessagesAppPresentationStyleCompact when from MSMessagesAppPresentationStyleExpanded.</p>

<p>I created my UIViewController from MSMessagesAppViewController, and called:</p>

<pre><code>self.currentViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"MainMenu"];
[self.currentViewController.view.leftAnchor constraintEqualToAnchor:self.view.leftAnchor].active = true;
[self.currentViewController.view.rightAnchor constraintEqualToAnchor:self.view.rightAnchor].active = true;
[self.currentViewController.view.topAnchor constraintEqualToAnchor:self.view.topAnchor].active = true;
[self.currentViewController.view.bottomAnchor constraintEqualToAnchor:self.view.bottomAnchor].active = true;
</code></pre>

<p>It works fine at initially and MSMessagesAppPresentationStyleExpanded. The problem will present when switch to MSMessagesAppPresentationStyleCompact again. There always have a blank top margin in it. Like:</p>

<p><a href="https://i.stack.imgur.com/50v8g.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/50v8g.jpg" alt="enter image description here"></a></p>

<p>How to fix it?<a href="https://i.stack.imgur.com/H2ox6.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H2ox6.jpg" alt="enter image description here"></a></p>