Adapter

  • Represents an adapter that holds data to be rendered.

    See more

    Declaration

    Swift

    public protocol Adapter : AnyObject
  • An adapter for UITableView. It can be inherited to implement customized behavior or give some unimplemented methods of delegate or dataSource.

    Attention : In UIKit, if inheriting the @objc class which using generics, the delegate and dataSource are don’t work properly, so this class doesn’t use generics, and also the class inherited this class shouldn’t use generics.

    See more

    Declaration

    Swift

    open class UITableViewAdapter : NSObject, Adapter
  • An adapter for UICollectionView. It can be inherited to implement customized behavior or give some unimplemented methods of delegate or dataSource.

    Attention : In UIKit, if inheriting the @objc class which using generics, the delegate and dataSource are don’t work properly, so this class doesn’t use generics, and also the class inherited this class shouldn’t use generics.

    See more

    Declaration

    Swift

    open class UICollectionViewAdapter : NSObject, Adapter