Skip to content

Instantly share code, notes, and snippets.

@gwennguihal
Created November 15, 2017 15:07
Show Gist options
  • Save gwennguihal/9516bcedf372f22f52fced79bbf07db4 to your computer and use it in GitHub Desktop.
Save gwennguihal/9516bcedf372f22f52fced79bbf07db4 to your computer and use it in GitHub Desktop.
override func prepare(forCollectionViewUpdates updateItems: [UICollectionViewUpdateItem]) {
super.prepare(forCollectionViewUpdates: updateItems)
decorationViewHandler.prepare(forCollectionViewUpdates: updateItems)
}
override func indexPathsToInsertForDecorationView(ofKind elementKind: String) -> [IndexPath] {
return decorationViewHandler.inserted(for: elementKind)
}
override func indexPathsToDeleteForDecorationView(ofKind elementKind: String) -> [IndexPath] {
return decorationViewHandler.deleted(for: elementKind)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment