PagingSmoothViewDataSource
@MainActor
@objc
public protocol PagingSmoothViewDataSource
Undocumented
-
返回页面header的高度
Declaration
Swift
@MainActor func heightForPagingHeader(in pagingView: PagingSmoothView) -> CGFloat
-
返回页面header视图
Declaration
Swift
@MainActor func viewForPagingHeader(in pagingView: PagingSmoothView) -> UIView
-
返回悬浮视图的高度
Declaration
Swift
@MainActor func heightForPinHeader(in pagingView: PagingSmoothView) -> CGFloat
-
返回悬浮视图
Declaration
Swift
@MainActor func viewForPinHeader(in pagingView: PagingSmoothView) -> UIView
-
返回列表的数量
Declaration
Swift
@MainActor func numberOfLists(in pagingView: PagingSmoothView) -> Int
-
根据index初始化一个对应列表实例,需要是遵从
FWPagingSmoothViewListViewDelegate
协议的对象。 如果列表是用自定义UIView封装的,就让自定义UIView遵从FWPagingSmoothViewListViewDelegate
协议,该方法返回自定义UIView即可。 如果列表是用自定义UIViewController封装的,就让自定义UIViewController遵从FWPagingSmoothViewListViewDelegate
协议,该方法返回自定义UIViewController即可。Declaration
Swift
@MainActor func pagingView(_ pagingView: PagingSmoothView, initListAtIndex index: Int) -> PagingSmoothViewListViewDelegate