The issue only happens on the iPhone XR, it works well on all other iPhone devices.
And I used the original UITabBar component, not the customized one
tabBarItem.titlePositionAdjustment.vertical = -10.0
tabBarItem.selectedImage = UIImage(named: imageName)
tabBarItem.title = barTitle
tabBarItem.image = UIImage(named: unSelectedImage)
Upate:
The issue can't be reproduced on the simulator, only on the physical device
The interesting things is, it works well on the one iPhone XR, has the issue on another iPhone XR
Update:
The user who has the issue open the Display Zoom feature
It works well when the use choose the Standard display
The solution is;
I use the nativeScale and scale parameter to detect if the user open the Display zoom feature.