EmptyViewDelegate

@MainActor
public protocol EmptyViewDelegate : AnyObject

空界面代理协议

  • showEmptyView(_:) Default implementation

    显示空界面,默认调用UIScrollView.showEmptyView

    Default Implementation

    默认实现,显示空界面,默认调用UIScrollView.showEmptyView

    Declaration

    Swift

    @MainActor
    func showEmptyView(_ scrollView: UIScrollView)
  • hideEmptyView(_:) Default implementation

    隐藏空界面,默认调用UIScrollView.hideEmptyView

    Default Implementation

    默认实现,隐藏空界面,默认调用UIScrollView.hideEmptyView

    Declaration

    Swift

    @MainActor
    func hideEmptyView(_ scrollView: UIScrollView)
  • emptyViewShouldScroll(_:) Default implementation

    显示空界面时是否允许滚动,默认NO

    Default Implementation

    默认实现,显示空界面时是否允许滚动,默认NO

    Declaration

    Swift

    @MainActor
    func emptyViewShouldScroll(_ scrollView: UIScrollView) -> Bool
  • emptyViewShouldDisplay(_:) Default implementation

    无数据时是否显示空界面,默认YES

    Default Implementation

    默认实现,无数据时是否显示空界面,默认YES

    Declaration

    Swift

    @MainActor
    func emptyViewShouldDisplay(_ scrollView: UIScrollView) -> Bool
  • emptyViewForceDisplay(_:) Default implementation

    有数据时是否强制显示空界面,默认NO

    Default Implementation

    默认实现,有数据时是否强制显示空界面,默认NO

    Declaration

    Swift

    @MainActor
    func emptyViewForceDisplay(_ scrollView: UIScrollView) -> Bool