mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-12-01 21:24:50 +00:00
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:
1 parent
23670efcfb
commit
2b8c636945
10 files changed
+215
-61
No files matched your search
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// StickerType.swift
|
||||
// StickerSlack
|
||||
//
|
||||
// Created by neon443 on 06/03/2026.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
enum StickerType: CustomStringConvertible, CaseIterable, Identifiable {
|
||||
case slackEmoji
|
||||
case giphyGif
|
||||
|
||||
var id: String { self.description }
|
||||
|
||||
var description: String {
|
||||
switch self {
|
||||
case .slackEmoji:
|
||||
return "Slack Emoji"
|
||||
case .giphyGif:
|
||||
return "Giphy GIF"
|
||||
}
|
||||
}
|
||||
}
|
||||