gif previews + handle apple wallpapers

This commit is contained in:
leminlimez committed 2025-07-15 15:13:28 -04:00
1 parent 4d6b093ffd
commit ad280b1a6b
4 files changed
+82 -21

No files matched your search

@@ -7,13 +7,13 @@
class DownloadableWallpaper: Identifiable, Codable {
var name: String
var description: String
var description: String?
var url: String
var preview: String
var authors: String
var authors: String?
var type: WallpaperType?
init(name: String, description: String, authors: String, preview: String, url: String, version: String) {
init(name: String, description: String?, authors: String?, preview: String, url: String, version: String) {
self.name = name
self.description = description
self.authors = authors
@@ -24,4 +24,8 @@ class DownloadableWallpaper: Identifiable, Codable {
enum WallpaperType: String, Codable {
case custom, apple, template
}
func previewIsGif() -> Bool {
return preview.hasSuffix(".gif")
}
}