UICollectionView

class UICollectionView : UIScrollView, UIDataSourceTranslating
  • Animate reload in a batch update

    Declaration

    Swift

    public func reload<T: DeepHashable>(
      changes: [Change<T>],
      section: Int = 0,
      completion: @escaping (Bool) -> Void)

    Parameters

    changes

    The changes from diff

    section

    The section that all calculated IndexPath belong

    completion

    Called when operation completes