---
title: automaticallyUpdateForSelection
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uibuttonconfiguration/automaticallyupdateforselection
---

# automaticallyUpdateForSelection

A Boolean value that determines whether the style automatically updates when the button is in a selected state.

## Declaration

```occ
@property (nonatomic, assign, readwrite) BOOL automaticallyUpdateForSelection;
```

## Discussion

Discussion The default value is true for the plainButtonConfiguration, grayButtonConfiguration, and tintedButtonConfiguration configurations. Set this value to false to customize the selection behavior.
