Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
Merge pull request #31 from snoozemoose/master
Browse files Browse the repository at this point in the history
Require DiffAware conformance instead of Hashable in table/collection view extensions
  • Loading branch information
onmyway133 authored Feb 27, 2019
2 parents e00a066 + 16a5cd3 commit b8b6b82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/iOS/UICollectionView+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public extension UICollectionView {
/// - section: The section that all calculated IndexPath belong
/// - updateData: Update your data source model
/// - completion: Called when operation completes
public func reload<T: Hashable>(
public func reload<T: DiffAware>(
changes: [Change<T>],
section: Int = 0,
updateData: () -> Void,
Expand Down
2 changes: 1 addition & 1 deletion Sources/iOS/UITableView+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public extension UITableView {
/// - replacementAnimation: The animation for reload rows
/// - updateData: Update your data source model
/// - completion: Called when operation completes
public func reload<T: Hashable>(
public func reload<T: DiffAware>(
changes: [Change<T>],
section: Int = 0,
insertionAnimation: UITableView.RowAnimation = .automatic,
Expand Down

0 comments on commit b8b6b82

Please sign in to comment.