UIContentUnavailableConfiguration
A content configuration for a content-unavailable view.
Declaration
@interface UIContentUnavailableConfiguration : NSObjectOverview
A content-unavailable configuration is a composable description of a view that indicates that 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, or to a UIContentUnavailableView.
The following screenshot shows an example of a content-unavailable view configured by setting the image, text, and secondaryText properties.
[Image]
Topics
Instance Properties
alignmentattributedTextaxesPreservingSuperviewLayoutMarginsbackgroundbuttonbuttonPropertiesbuttonToSecondaryButtonPaddingdirectionalLayoutMarginsimageimagePropertiesimageToTextPaddingsecondaryAttributedTextsecondaryButtonsecondaryButtonPropertiessecondaryTextsecondaryTextPropertiestexttextPropertiestextToButtonPaddingtextToSecondaryTextPadding