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

Commit

Permalink
Changed extensions for UITableView's and UICollectionView's reload fu…
Browse files Browse the repository at this point in the history
…nction to require DiffAware protocol conformance instead of Hashable
  • Loading branch information
snoozemoose committed Feb 27, 2019
1 parent e00a066 commit 16a5cd3
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 16a5cd3

Please sign in to comment.