Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Sources/Other/CollectionReuseViewManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ public class CollectionReuseViewManager: NSObject {
} else {
reusableViews[identifier] = [view]
}
if let collectionView = view as? CollectionView {
collectionView.provider = nil
}
if let cleanupTimer = cleanupTimer {
cleanupTimer.fireDate = Date().addingTimeInterval(lifeSpan)
} else {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Provider/FlattenedProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ struct FlattenedProvider: ItemProvider {
func identifier(at: Int) -> String {
let (sectionIndex, item) = indexPath(at)
if let sectionData = childSections[sectionIndex].sectionData {
return provider.identifier(at: sectionIndex) + sectionData.identifier(at: item)
return provider.identifier(at: sectionIndex) + "-" + sectionData.identifier(at: item)
} else {
return provider.identifier(at: sectionIndex)
}
Expand Down