---
title: setNeedsUpdateConfiguration()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uibutton/setneedsupdateconfiguration()
---

# setNeedsUpdateConfiguration()

Requests the system update the button configuration.

## Declaration

```swift
func setNeedsUpdateConfiguration()
```

## Discussion

Discussion Call this method to make the system call updateConfiguration(). The system calls this method automatically when the button’s state changes. If you call this method multiple times before the system calls updateConfiguration(), the system calls updateConfiguration() once.

## See Also

### Managing the appearance with a configuration object

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