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.

Lifecycle

  • 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)

Public

  • Undocumented

    See more

    Declaration

    Swift

    public enum Variant
  • Declaration

    Swift

    public var body: some View { get }

Internal

  • Undocumented

    Declaration

    Swift

    var icon: Image { get }
  • Undocumented

    Declaration

    Swift

    var title: String { get }