UICollectionViewCell
extension UICollectionViewCell
UICollectionViewCell骨架屏视图代理扩展
-
Undocumented
Declaration
Swift
open override func skeletonViewLayout(_ layout: SkeletonLayout)
-
Declaration
Swift
open override func statisticalViewWillBindClick(_ containerView: UIView?) -> Bool
-
Declaration
Swift
open override func statisticalViewWillBindExposure(_ containerView: UIView?) -> Bool
-
Declaration
Swift
open override func statisticalViewContainerView() -> UIView?
-
Declaration
Swift
open override func statisticalViewIndexPath() -> IndexPath?
-
免注册创建UICollectionViewCell,内部自动处理缓冲池,指定reuseIdentifier
Declaration
Swift
public static func fw_cell( collectionView: UICollectionView, indexPath: IndexPath, reuseIdentifier: String? = nil ) -> Self
-
根据配置自动计算view大小,可固定宽度或高度,可指定key使用缓存,子类可重写
Declaration
Swift
public static func fw_size( collectionView: UICollectionView, width: CGFloat = 0, height: CGFloat = 0, cacheBy key: AnyHashable? = nil, configuration: (UICollectionViewCell) -> Void ) -> CGSize
-
获取当前所属collectionView
Declaration
Swift
public weak var fw_collectionView: UICollectionView? { get }
-
获取当前显示indexPath
Declaration
Swift
public var fw_indexPath: IndexPath? { get }
-
执行所属collectionView的批量更新
Declaration
Swift
public func fw_performBatchUpdates( _ updates: ((UICollectionView, IndexPath?) -> Void)?, completion: ((UICollectionView, IndexPath?, Bool) -> Void)? = nil )