adding gifs

added sticker.swift to add a protocol for stickers and an extension that has shared default implementations of functions and computed properties
added stickertype enum
This commit is contained in:
Nihaal Sharma
2026-03-06 23:46:09 +00:00
parent 23670efcfb
commit 2b8c636945
10 changed files with 215 additions and 61 deletions

View File

@@ -16,7 +16,7 @@ class StickerBrowserDataSource: NSObject, MSStickerBrowserViewDataSource {
func numberOfStickers(in stickerBrowserView: MSStickerBrowserView) -> Int {
guard emojis.isEmpty else { return emojis.count }
for emoji in hoarder.emojis {
guard let sticker = emoji.sticker else { continue }
guard let sticker = emoji.msSticker else { continue }
emojis.append(sticker)
}
return emojis.count