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)?
-
初始化并绑定scrollView
Declaration
Swift
@MainActor public convenience init(scrollView: UIScrollView)
-
Undocumented
Declaration
Swift
@MainActor open func scrollViewDidScroll(_ scrollView: UIScrollView)
-
Undocumented
Declaration
Swift
@MainActor open func scrollViewWillBeginDragging(_ scrollView: UIScrollView)
-
Undocumented
Declaration
Swift
@MainActor open func scrollViewWillEndDragging(_ scrollView: UIScrollView, withVelocity velocity: CGPoint, targetContentOffset: UnsafeMutablePointer<CGPoint>)
-
Undocumented
Declaration
Swift
@MainActor open func scrollViewDidEndDragging(_ scrollView: UIScrollView, willDecelerate decelerate: Bool)
-
Undocumented
Declaration
Swift
@MainActor open func scrollViewDidEndDecelerating(_ scrollView: UIScrollView)
-
Undocumented
Declaration
Swift
@MainActor open func scrollViewDidEndScrollingAnimation(_ scrollView: UIScrollView)