IceCubesApp/Packages/Models/Sources/Models/Card.swift

19 lines
382 B
Swift
Raw Normal View History

2022-12-19 15:34:57 +00:00
import Foundation
2023-01-22 15:55:03 +00:00
public struct Card: Codable, Identifiable, Equatable, Hashable {
public var id: String {
url
}
2023-01-17 10:36:01 +00:00
public let url: String
2022-12-19 15:34:57 +00:00
public let title: String?
public let description: String?
public let type: String
public let image: URL?
public let width: CGFloat
public let height: CGFloat
2024-02-10 10:26:22 +00:00
public let history: [History]?
2022-12-19 15:34:57 +00:00
}
extension Card: Sendable {}