init, finished

This commit is contained in:
Joshua Higgins
2025-06-02 17:49:33 -04:00
parent bbc0606bab
commit 4ef60608cd
16 changed files with 1550 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import Foundation
import UIKit
struct GIF: Codable, Identifiable, Equatable {
let id: UUID
let urlString: String
let createdAt: Date
var url: URL? {
return URL(string: urlString)
}
init(urlString: String) {
self.id = UUID()
self.urlString = urlString
self.createdAt = Date()
}
static func == (lhs: GIF, rhs: GIF) -> Bool {
return lhs.id == rhs.id
}
}