itemWidth
The width (in points) of tab bar items.
Declaration
var itemWidth: CGFloat { get set }Discussion
When the tab bar positions items using the UITabBar.ItemPositioning.centered option, it checks the value of this property to see if a custom width value has been supplied. The default value of this property is 0, which causes the tab bar to use a system-defined default width for each item. Specifying a value greater than 0 causes the tab bar to use your custom value instead. If you try to set this property to a negative value, the tab bar sets the value to 0 instead.