UITabBar selectionIndicatorImage height on iPhone X : <p>I'm using a <code>selectionIndicatorImage</code> for a <code>UITabBar</code>, which is 49 points high, like this: <code>UITabBar.appearance().selectionIndicatorImage = UIImage(named: "bg-tab-selected")</code></p>

<p>Works just fine across all devices:
<a href="https://i.stack.imgur.com/QfliQ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/QfliQ.png" alt="enter image description here"></a></p>

<p>Except for the iPhone X:</p>

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

<p>I've tried setting the images to be vertically sliced only in the asset catalog, but that doesn't seem to have the desired effect. For some reason it also stretches horizontally? And there is a bit of padding on top.</p>

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

<p>Any ideas how I can fix this?</p>
