I cannot solve this issue, related to the position of the title of every single tab bar item in a UITabBar
. I tried with this:
extension UITabBar {
override open var traitCollection: UITraitCollection {
if UIDevice.current.userInterfaceIdiom == .pad {
return UITraitCollection(horizontalSizeClass: .compact)
}
return super.traitCollection
}
}
With no success. How can I solve this misalignment?