UICollectionViewFlowLayoutAdapter

open class UICollectionViewFlowLayoutAdapter : UICollectionViewAdapter

An adapter for UICollectionView with UICollectionViewFlowLayout inherited from UICollectionViewAdapter.

  • Returns the size for item at specified index path.

    Declaration

    Swift

    open func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize
  • Returns the size for header in specified section.

    Declaration

    Swift

    open func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, referenceSizeForHeaderInSection section: Int) -> CGSize
  • Returns the size for footer in specified section.

    Declaration

    Swift

    open func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, referenceSizeForFooterInSection section: Int) -> CGSize