add app icon, rename to Sticker Cloner, pack thumbnails, sort list, smaller stickers

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-03 17:28:53 +01:00
parent 8d120f4d56
commit fae1159536
19 changed files with 50 additions and 4 deletions

View File

@@ -89,6 +89,15 @@ final class StickerStore {
return urls
}
func firstStickerURL(forPack name: String) -> URL? {
let packDir = packDirectory(name: name)
guard let files = try? fileManager.contentsOfDirectory(at: packDir, includingPropertiesForKeys: nil) else { return nil }
return files
.filter { $0.pathExtension == "png" }
.sorted { $0.lastPathComponent < $1.lastPathComponent }
.first
}
// MARK: - Migration from old sandbox
private func migrateIfNeeded() {