import Foundation struct PostWithContext: Hashable { let post: BooruPost // swiftlint:disable:next discouraged_optional_collection let posts: [BooruPost]? func hash(into hasher: inout Hasher) { hasher.combine(post.id) } static func == (lhs: Self, rhs: Self) -> Bool { lhs.post.id == rhs.post.id } }