I use selectionIndicatorImagefor UITabBar, which is 49 points higher, for example:UITabBar.appearance().selectionIndicatorImage = UIImage(named: "bg-tab-selected")
Works well on all devices:

Except for the iPhone X:

I tried to set the images to be vertically cut only in the asset catalog, but this does not seem to have the desired effect. For some reason, does it also stretch horizontally? And actually there are a few extras.

Any ideas how I can fix this?
source
share