<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIButton/automaticallyUpdatesConfiguration",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIButton(py)automaticallyUpdatesConfiguration"
  },
  "title" : "automaticallyUpdatesConfiguration"
}
-->

# automaticallyUpdatesConfiguration

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

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

## Discussion

Set this property to <doc://com.apple.documentation/documentation/Swift/true> to have the button call [`updated(for:)`](/documentation/UIKit/UIButton/Configuration-swift.struct/updated(for:)) (Swift) or [`updatedConfigurationForButton:`](/documentation/UIKit/UIButtonConfiguration/updatedConfigurationForButton:) (Objective-C) when the button state changes and apply the changes to the button. The default value is <doc://com.apple.documentation/documentation/Swift/true>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)