mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-11-30 12:44:51 +00:00
30 lines
652 B
Swift
30 lines
652 B
Swift
//
|
|
// StickerProtocol.swift
|
|
// StickerSlack
|
|
//
|
|
// Created by neon443 on 06/03/2026.
|
|
//
|
|
|
|
import Foundation
|
|
import Messages
|
|
|
|
protocol StickerProtocol: Codable, Identifiable, Hashable {
|
|
var id: String { get set }
|
|
var name: String { get set }
|
|
var UIName: String { get set }
|
|
|
|
var typeGlyph: String { get }
|
|
|
|
var localImageURL: URL { get }
|
|
var localImageURLString: String { get }
|
|
var remoteImageURL: URL { get set }
|
|
|
|
var msSticker: MSSticker? { get }
|
|
var image: UIImage? { get }
|
|
|
|
nonisolated func downloadImage() async throws
|
|
func deleteImage()
|
|
func resize(image: UIImage, to targetSize: CGSize) -> UIImage
|
|
static var test: Self { get }
|
|
}
|