mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-03-11 13:26:17 +00:00
starting to add emojipacks
This commit is contained in:
@@ -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"
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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> = []
|
||||
|
||||
Reference in New Issue
Block a user