---
title: width
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uibarbuttonitem/width
---

# width

The width of the item.

## Declaration

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

## Discussion

Discussion If this property value is positive, the width of the combined image and title are fixed. If the value is 0.0 or negative, the item sets the width of the combined image and title to fit. This property is ignored if the style uses radio mode. The default value is 0.0.

## See Also

### Customizing item appearance

- [style](uikit/uibarbuttonitem/style-swift.property.md)
- [UIBarButtonItem.Style](uikit/uibarbuttonitem/style-swift.enum.md)
- [tintColor](uikit/uibarbuttonitem/tintcolor.md)
- [isHidden](uikit/uibarbuttonitem/ishidden.md)
- [isSelected](uikit/uibarbuttonitem/isselected.md)
- [possibleTitles](uikit/uibarbuttonitem/possibletitles.md)
