---
title: firstOtherButtonIndex
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiactionsheet/firstotherbuttonindex
---

# firstOtherButtonIndex

The index of the first custom button.

## Declaration

```swift
var firstOtherButtonIndex: Int { get }
```

## Discussion

Discussion Button indices start at 0. The default value of this property is -1, which indicates that there are no other custom buttons.

## See Also

### Configuring buttons

- [addButton(withTitle:)](uikit/uiactionsheet/addbutton(withtitle:).md)
- [numberOfButtons](uikit/uiactionsheet/numberofbuttons.md)
- [buttonTitle(at:)](uikit/uiactionsheet/buttontitle(at:).md)
- [cancelButtonIndex](uikit/uiactionsheet/cancelbuttonindex.md)
- [destructiveButtonIndex](uikit/uiactionsheet/destructivebuttonindex.md)
