---
title: itemWidth
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitabbar/itemwidth
---

# itemWidth

The width (in points) of tab bar items.

## Declaration

```swift
var itemWidth: CGFloat { get set }
```

## Discussion

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.

## See Also

### Customizing item spacing

- [itemPositioning](uikit/uitabbar/itempositioning-swift.property.md)
- [UITabBar.ItemPositioning](uikit/uitabbar/itempositioning-swift.enum.md)
- [itemSpacing](uikit/uitabbar/itemspacing.md)
