<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "tvOS: 17.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIContentUnavailableConfiguration-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit33UIContentUnavailableConfigurationV"
  },
  "title" : "UIContentUnavailableConfiguration"
}
-->

# UIContentUnavailableConfiguration

A content configuration for a content-unavailable view.

```
struct UIContentUnavailableConfiguration
```

## Overview

A content-unavailable configuration is a composable description of a view that indicates your app can’t display content. Using a content-unavailable configuration, you can obtain system default styling for a variety of different empty states. Fill the configuration with placeholder content, and then assign it to a view controller’s [`contentUnavailableConfiguration`](/documentation/UIKit/UIViewController/contentUnavailableConfiguration-4b95e), or to a [`UIContentUnavailableView`](/documentation/UIKit/UIContentUnavailableView).

The following screenshot shows an example of a content-unavailable view configured by setting the [`image`](/documentation/UIKit/UIContentUnavailableConfiguration-swift.struct/image), [`text`](/documentation/UIKit/UIContentUnavailableConfiguration-swift.struct/text), and [`secondaryText`](/documentation/UIKit/UIContentUnavailableConfiguration-swift.struct/secondaryText) properties.

![A screenshot of a content-unavailable view indicating that there are no reminders in the Work folder.](images/com.apple.uikit/uicontentunavailableconfiguration@2x.png)

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`UIContentConfiguration-9eib5`](/documentation/UIKit/UIContentConfiguration-9eib5)

[`CustomReflectable`](/documentation/Swift/CustomReflectable)

[`Copyable`](/documentation/Swift/Copyable)

[`Hashable`](/documentation/Swift/Hashable)

[`Escapable`](/documentation/Swift/Escapable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

---

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)