---
title: automaticallyUpdateForSelection
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uibutton/configuration-swift.struct/automaticallyupdateforselection
---

# automaticallyUpdateForSelection

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

## Declaration

```swift
var automaticallyUpdateForSelection: Bool { get set }
```

## Discussion

Discussion The default value is true for the plain(), gray(), and tinted() configurations. Set this value to false to customize the selection behavior.
