---
title: UIContentUnavailableConfigurationState
framework: uikit
role: symbol
role_heading: Structure
path: uikit/uicontentunavailableconfigurationstate-swift.struct
---

# UIContentUnavailableConfigurationState

A structure that encapsulates state for a content-unavailable view.

## Declaration

```swift
struct UIContentUnavailableConfigurationState
```

## Overview

Overview Typically, you don’t create a configuration state yourself. To obtain a configuration state, override updateContentUnavailableConfiguration(using:) in your view controller subclass and use the state parameter. Outside of this method, you can get a view controller’s configuration state from the contentUnavailableConfigurationState property. You can create your own custom states to add to a content-unavailable configuration state by defining a custom state key with UIConfigurationStateCustomKey.

## Topics

### Instance Properties

- [searchText](uikit/uicontentunavailableconfigurationstate-swift.struct/searchtext.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomReflectable](swift/customreflectable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [UIConfigurationState](uikit/uiconfigurationstate-8d7pd.md)

## See Also

### Unavailable content configurations

- [UIContentUnavailableConfiguration](uikit/uicontentunavailableconfiguration-swift.struct.md)
