EmptyViewProvider

@MainActor
public struct EmptyViewProvider

Provides an “empty state” or “no content” view for the collection view.

  • A closure that returns the view.

    Declaration

    Swift

    @MainActor
    public let viewBuilder: () -> UIView
  • The empty view.

    Declaration

    Swift

    @MainActor
    public var view: UIView { get }
  • Initializes an EmptyViewProvider with the given closure.

    Declaration

    Swift

    @MainActor
    public init(_ viewBuilder: @escaping () -> UIView)

    Parameters

    viewBuilder

    A closure that creates and returns the empty view.