diff --git a/Sources/Billboard/Models/BillboardAd.swift b/Sources/Billboard/Models/BillboardAd.swift index 74dd1e7..89f62e2 100644 --- a/Sources/Billboard/Models/BillboardAd.swift +++ b/Sources/Billboard/Models/BillboardAd.swift @@ -8,13 +8,16 @@ import Foundation import SwiftUI +public struct BillboardAd : Codable, Identifiable, Hashable { -public struct BillboardAd : Codable, Identifiable, Equatable { - public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool { lhs.id == rhs.id } - + + public func hash(into hasher: inout Hasher) { + hasher.combine(id) + } + public var id : String { return "\(name)+\(appStoreID)" }