main
swift 27 lines 651 Bytes
Raw
1 //
2 // ContinueWatchingItem.swift
3 // JomloCollectionView Example
4 //
5 // Created by Seto Elkahfi on 2026-01-27.
6 // Copyright © 2026 Seto Elkahfi. All rights reserved.
7 //
8
9 import JomloCollectionView
10
11 struct ContinueWatchingItem: JomloItem, @unchecked Sendable {
12 let id: String
13 let title: String
14 let episodeInfo: String
15 let progress: Float
16 let colorHex: String
17
18 nonisolated var itemIdentifier: String { id }
19
20 nonisolated static func == (lhs: ContinueWatchingItem, rhs: ContinueWatchingItem) -> Bool {
21 lhs.id == rhs.id
22 }
23
24 nonisolated func hash(into hasher: inout Hasher) {
25 hasher.combine(id)
26 }
27 }