added loading and error state for gifview (stickerpreview) with animations

redid stickerpreview logic cos it was messy
made gifFrom throwing
faster sticker.image when it doesnt exist
fix swift6 warning in hoarder downloaded stickers
added better padding to welcome view and disabled interactive dismiss
This commit is contained in:
neon443 committed 2026-04-08 14:27:22 +01:00
1 parent e5850d9ea4
commit b7f357fd2e
6 files changed
+99 -55

No files matched your search

+2 -3
View File
@@ -12,9 +12,8 @@ class GifManager {
//from clock-run, 12 frames one second
static let defaultDuration: Double = 0.083333333333333329
static func gifFrom(url: URL) async -> [(frame: CGImage, showFor: Double)] {
guard let (data, _) = try? await URLSession.shared.data(from: url) else { return [] }
static func gifFrom(url: URL) async throws -> [(frame: CGImage, showFor: Double)] {
let (data, _) = try await URLSession.shared.data(from: url)
return gifFrom(data: data)
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.