Skip to content

ContentUnavailable

Presents a native empty, unavailable, or no-results state.

<ContentUnavailable ... />

Overview

This component is backed by the platform control or container. Prefer its XML tag in an .etlua template; keep view-tree construction out of controllers.

Topics

Properties

Name Type Required Description
children views optional Action controls shown beneath the message, SwiftUI's actions:.
description value optional Secondary explanatory text for an unavailable state.
descriptionAlignment string optional center (default), leading or trailing text alignment of the description.
imageSize number optional Symbol or image size in points.
lines number optional Maximum number of visible text lines.
spacing number optional Component-specific setting passed to the native control.
systemImage string optional Component-specific setting passed to the native control.
title value optional Component-specific setting passed to the native control.

Platform notes

  • AppKit uses the AppKit implementation. UIKit uses the UIKit implementation.

Source: lua/embedded/AppKit.lua:1756 (AppKit.ContentUnavailable)