diff --git a/Frameworks/Account/FeedIdentifier.swift b/Frameworks/Account/FeedIdentifier.swift index 1bd3230d7..eed0a7555 100644 --- a/Frameworks/Account/FeedIdentifier.swift +++ b/Frameworks/Account/FeedIdentifier.swift @@ -79,5 +79,19 @@ public enum FeedIdentifier: CustomStringConvertible, Hashable { return nil } } - + + // MARK: - Hashable + + public func hash(into hasher: inout Hasher) { + switch self { + case .smartFeed(let id): + hasher.combine(id) + case .script(let id): + hasher.combine(id) + case .webFeed(_, let webFeedID): + hasher.combine(webFeedID) + case .folder(_, let folderName): + hasher.combine(folderName) + } + } }