Skip to content

Commit 9c83904

Browse files
fix: add CodingKeys to Emoji to pass tests
1 parent bb8d4c6 commit 9c83904

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Binary file not shown.

Sources/EmojiPicker/Models/Emoji.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ struct Emoji: Decodable, Identifiable {
3434
let version: Double
3535
/// Skin tone number. We save it so user can use the skin he chose.
3636
var skinToneIndex = 0
37+
38+
enum CodingKeys: String, CodingKey {
39+
case id, name, keywords, skins, version
40+
}
3741
}
3842

3943
extension Emoji {

0 commit comments

Comments
 (0)