I'm using a selectionIndicatorImage
for a UITabBar
, which is 49 points high, like this: UITabBar.appearance().selectionIndicatorImage = UIImage(named: "bg-tab-selected")
Works just fine across all devices:
Except for the iPhone X:
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.
Any ideas how I can fix this?