import Foundation extension Profile: Hashable { public static func == (lhs: Profile, rhs: Profile) -> Bool { lhs.id == rhs.id } public func hash(into hasher: inout Hasher) { hasher.combine(id) } }