<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "tvOS: 17.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIViewController/contentUnavailableConfiguration-4b95e",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So16UIViewControllerC5UIKitE31contentUnavailableConfigurationAC09UIContentF0_pSgvp"
  },
  "title" : "contentUnavailableConfiguration"
}
-->

# contentUnavailableConfiguration

The current content-unavailable configuration of the view controller.

```
@MainActor @preconcurrency var contentUnavailableConfiguration: (any UIContentConfiguration)? { get set }
```

## Discussion

Use this property to configure a content-unavailable view that the view controller manages. The value of this property is commonly an instance of [`UIContentUnavailableConfiguration`](/documentation/UIKit/UIContentUnavailableConfiguration-swift.struct), but you can use other types of content configuration, including a <doc://com.apple.documentation/documentation/SwiftUI/UIHostingConfiguration>, to display a SwiftUI view.

---

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)