Contents

UIContentUnavailableView

A view that indicates there’s no content to display.

Declaration

@MainActor class UIContentUnavailableView

Overview

Use a content-unavailable view to indicate that your app can’t display content. For example, content may not be available if a search returns no results or your app is loading data over the network.

In many cases, you won’t need to create a view of this type directly. Set a UIContentUnavailableConfiguration as the view controller’s contentUnavailableConfiguration, and the view controller manages the layout of the content-unavailable view.

Topics

Initializers

Instance Properties

See Also

Content views