starting to add emojipacks

This commit is contained in:
neon443
2025-12-01 15:07:44 +00:00
parent 74d6b29f69
commit 11cebac1b4
5 changed files with 84 additions and 0 deletions

View File

@@ -9,5 +9,25 @@ import Foundation
struct EmojiPack: Identifiable, Codable {
var id: UUID
var name: String
var description: String
var emojiNames: [String]
static var test: EmojiPack {
EmojiPack(
id: UUID(),
name: "test pack",
description: "neon443's debug emoji pack",
emojiNames: [
"pf",
"heavysob",
"yay",
"skulk",
"loll",
"bleh",
"uhh",
"communist"
]
)
}
}

View File

@@ -21,6 +21,7 @@ class EmojiHoarder: ObservableObject {
private let decoder = JSONDecoder()
@Published var emojis: [Emoji] = []
@Published var emojiPacks: [EmojiPack] = []
@Published var trie: Trie = Trie()
@Published var downloadedEmojis: Set<String> = []