UtilityBlockView
public struct UtilityBlockView : View
A view that displays a message, subtitle, and optional action button. This view is intended to be used as a placeholder when no data is available, when data is loading, or when an error occurs.
-
Creates a new instance of
UtilityBlockView
.- message: The message to display.
- subtitle: The subtitle to display.
- variant: The variant of the utility block.
- actionText: The text for the action button.
- action: The action to perform when the action button is tapped.
Declaration
Swift
public init( _ message: String? = nil, subtitle: String? = nil, variant: Variant = .empty, actionText: String? = nil, action: (() -> Void)? = nil)
-
Undocumented
See moreDeclaration
Swift
public enum Variant
-
Declaration
Swift
public var body: some View { get }