What is the alternate for the below with the new UITabBarAppearence
Before UITabBarAppearence. The below implementation worked fine.
Title Position:
tabBar.items?[0].titlePositionAdjustment = UIOffset(horizontal: -10 , vertical: -15)
tabBar.items?[1].titlePositionAdjustment = UIOffset(horizontal: -25 , vertical: -15)
tabBar.items?[2].titlePositionAdjustment = UIOffset(horizontal: 25 , vertical: -15)
tabBar.items?[3].titlePositionAdjustment = UIOffset(horizontal: 10 , vertical: -15)
Image Position:
items.forEach { item in
item.imageInsets = UIEdgeInsets(top: -10, left: 0, bottom: 10, right: 0)
}
UITabBarAppearence
seems to apply settings to the overall tabBar
but couldn't find a way to customise individual items.