---
title: automaticallyUpdatesConfiguration
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uibutton/automaticallyupdatesconfiguration
---

# automaticallyUpdatesConfiguration

A Boolean value that determines whether the button configuration changes when button’s state changes.

## Declaration

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

## Discussion

Discussion Set this property to true to have the button call updated(for:) (Swift) or updatedConfigurationForButton: (Objective-C) when the button state changes and apply the changes to the button. The default value is true.

## See Also

### Managing the appearance with a configuration object

- [configuration](uikit/uibutton/configuration-5rlyb.md)
- [setNeedsUpdateConfiguration()](uikit/uibutton/setneedsupdateconfiguration().md)
- [updateConfiguration()](uikit/uibutton/updateconfiguration().md)
- [configurationUpdateHandler](uikit/uibutton/configurationupdatehandler-swift.property.md)
- [UIButton.ConfigurationUpdateHandler](uikit/uibutton/configurationupdatehandler-swift.typealias.md)
