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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user