mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-11-30 12:44:51 +00:00
added clear logos for giphy stickers
This commit is contained in:
8 files changed
+32
-9
No files matched your search
@@ -57,7 +57,7 @@ extension StickerProtocol {
|
||||
return
|
||||
}
|
||||
|
||||
func resize(image: UIImage, to targetSize: CGSize) -> UIImage {
|
||||
func resize(image: UIImage, to targetSize: CGSize) -> UIImage {
|
||||
let oldSize = image.size
|
||||
let ratio: (x: CGFloat, y: CGFloat)
|
||||
ratio.x = targetSize.width / oldSize.width
|
||||
|
||||
@@ -12,6 +12,8 @@ protocol StickerProtocol: Codable, Identifiable, Hashable {
|
||||
var id: String { get set }
|
||||
var name: String { get set }
|
||||
|
||||
var typeGlyph: String { get }
|
||||
|
||||
var localImageURL: URL { get }
|
||||
var localImageURLString: String { get }
|
||||
var remoteImageURL: URL { get set }
|
||||
|
||||