Content Unavailable
A placeholder for empty results with optional button
Platform Compatibility
iOS 17.0+ iPadOS 17.0+ macOS 14.0+ watchOS 10.0+ tvOS 17.0+ visionOS 1.0+
Tags
SwiftUI Code
ContentUnavailableView {
Label("No Mail", systemImage: "tray.fill")
} description: {
Text("New mails you receive will appear here.")
} actions: {
Button("Switch Account") { }
.buttonStyle(.borderedProminent)
}
Found an issue or have a suggestion?
Created: May 29, 2025Updated: May 31, 2025