Edit in GitHubLog an issue

EmptyStateSettings

Settings that define how an empty inbox looks when there are no content cards to display.

Struct Definition

Copied to your clipboard
public struct EmptyStateSettings: Codable

Public Properties

PropertyTypeDescription
message
Optional text message to display in the empty state. Configured in Adobe Journey Optimizer.
image
Optional image to display in the empty state. Configured in Adobe Journey Optimizer.

Usage

EmptyStateSettings is passed to the custom empty view builder set via InboxUI.setEmptyView(_:). Use configured values when available and fall back to your own defaults otherwise.

Copied to your clipboard
inboxUI.setEmptyView { emptyStateSettings in
AnyView(
VStack(spacing: 16) {
if let image = emptyStateSettings?.image {
image.view
.frame(maxWidth: 120, maxHeight: 120)
} else {
Image(systemName: "tray")
.font(.system(size: 60))
.foregroundColor(.gray)
}
if let message = emptyStateSettings?.message {
message.view
.multilineTextAlignment(.center)
} else {
Text("No messages")
.font(.headline)
.foregroundColor(.secondary)
}
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.padding()
)
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2026 Adobe. All rights reserved.