iOS 13 - UIPopoverPresentationController sourceview content visible in the arrow : <p>When I am displaying some view in UIPopoverPresentationController and presenting it as popover</p>

<pre><code>popoverCon?.modalPresentationStyle = UIModalPresentationStyle.popover
</code></pre>

<p>the content have moved upward toward and a some part is being display in the arrow. </p>

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

<p>Further I had border around the popover</p>

<pre><code>popoverCon?.view.layer.borderColor = .orange
popoverCon?.view.layer.borderWidth = 1.0;
popoverCon?.view.layer.cornerRadius = 10.0;
popoverCon?.view.layer.masksToBounds = false;
</code></pre>

<p>it is not showing toward the part where arrow is but it displays a little of the border line in the tip of the arrow.</p>

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

<p>This was working fine until iOS 12 but in iOS 13 this issue is coming.  </p>

<p>Any suggestions on how I can solve this?</p>
