---
title: leadingBarButtonGroups
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextinputassistantitem/leadingbarbuttongroups
---

# leadingBarButtonGroups

The array of button item groups to display before the typing suggestions.

## Declaration

```swift
var leadingBarButtonGroups: [UIBarButtonItemGroup] { get set }
```

## Discussion

Discussion Assigning a value to this property installs the corresponding bar button items so that they lead the typing suggestions. (In a left-to-right environment, leading items are placed to the left of the typing suggestions.) If there is not enough room to display all of the items, UIKit may display a group’s representative item instead, if one was provided.

## See Also

### Configuring the shortcuts bar

- [trailingBarButtonGroups](uikit/uitextinputassistantitem/trailingbarbuttongroups.md)
- [allowsHidingShortcuts](uikit/uitextinputassistantitem/allowshidingshortcuts.md)
