Remade project structure

This commit is contained in:
Joshua Higgins
2025-06-04 13:57:32 -04:00
parent b27b223a5e
commit 718436764d
57 changed files with 925 additions and 894 deletions

View File

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