ScrollViewDelegate

@MainActor
open class ScrollViewDelegate : DelegateProxy<UIScrollViewDelegate>, UIScrollViewDelegate

常用滚动视图事件代理,可继承

  • 滚动句柄,默认nil

    Declaration

    Swift

    @MainActor
    open var didScroll: ((UIScrollView) -> Void)?
  • 即将开始拖动句柄,默认nil

    Declaration

    Swift

    @MainActor
    open var willBeginDragging: ((UIScrollView) -> Void)?
  • 即将停止拖动句柄,默认nil

    Declaration

    Swift

    @MainActor
    open var willEndDragging: ((UIScrollView, CGPoint, UnsafeMutablePointer<CGPoint>) -> Void)?
  • 已经停止拖动句柄,默认nil

    Declaration

    Swift

    @MainActor
    open var didEndDragging: ((UIScrollView, Bool) -> Void)?
  • 已经停止减速句柄,默认nil

    Declaration

    Swift

    @MainActor
    open var didEndDecelerating: ((UIScrollView) -> Void)?
  • 已经停止滚动动画句柄,默认nil

    Declaration

    Swift

    @MainActor
    open var didEndScrollingAnimation: ((UIScrollView) -> Void)?

Lifecycle

  • 初始化并绑定scrollView

    Declaration

    Swift

    @MainActor
    public convenience init(scrollView: UIScrollView)

UIScrollViewDelegate