blob: bd8549e286779d49518d19a017a62d1419af1816 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import Foundation
struct PostWithContext: Hashable {
let post: BooruPost
// swiftlint:disable:next discouraged_optional_collection
let posts: [BooruPost]?
let baseSearchText: String?
func hash(into hasher: inout Hasher) {
hasher.combine(post.id)
}
static func == (lhs: Self, rhs: Self) -> Bool {
lhs.post.id == rhs.post.id
}
}
|