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

# updatedConfigurationForButton:

Returns a copy of the configuration, updated for the given button.

```
- (instancetype) updatedConfigurationForButton:(UIButton *) button;
```

## Parameters

`button`

A button to use as a basis for the configuration.

## Return Value

An updated configuration. This method preserves custom values set on the configuration, and updates default values based on the button state.

---

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)