---
title: "updateContentUnavailableConfiguration(using:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiviewcontroller/updatecontentunavailableconfiguration(using:)"
---

# updateContentUnavailableConfiguration(using:)

Updates the content-unavailable configuration for the provided state.

## Declaration

```swift
@MainActor @objc(_bridgedUpdateContentUnavailableConfigurationUsingState:) @preconcurrency dynamic func updateContentUnavailableConfiguration(using state: UIContentUnavailableConfigurationState)
```

## Parameters

- `state`: The current configuration state for a content-unavailable view.

## Discussion

Discussion Override this method to update the value of contentUnavailableConfiguration as appropriate for the given state. Don’t call this method directly. Instead, call setNeedsUpdateContentUnavailableConfiguration() to tell the system to request an update. In iOS 18 and later, UIKit supports automatic trait tracking inside this method for traits from this view controller’s traitCollection and the traitCollection of its view. For more information, see Automatic trait tracking. This method supports automatic observation tracking. For more information, see Updating views automatically with observation tracking.

## See Also

### Observing data in view controllers

- [updateProperties()](uikit/uiviewcontroller/updateproperties().md)
- [viewWillLayoutSubviews()](uikit/uiviewcontroller/viewwilllayoutsubviews().md)
- [viewDidLayoutSubviews()](uikit/uiviewcontroller/viewdidlayoutsubviews().md)
- [updateViewConstraints()](uikit/uiviewcontroller/updateviewconstraints().md)
