mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-27 12:59:17 +01:00
Fix pasting screenshot close #864
This commit is contained in:
parent
b707749558
commit
0526c1025f
@ -21,6 +21,8 @@ enum StatusEditorUTTypeSupported: String, CaseIterable {
|
||||
case gif = "public.gif"
|
||||
case gif2 = "com.compuserve.gif"
|
||||
case quickTimeMovie = "com.apple.quicktime-movie"
|
||||
|
||||
case uiimage = "com.apple.uikit.image"
|
||||
|
||||
static func types() -> [UTType] {
|
||||
[.url, .text, .plainText, .image, .jpeg, .png, .tiff, .video, .mpeg4Movie, .gif, .movie, .quickTimeMovie]
|
||||
@ -51,7 +53,7 @@ enum StatusEditorUTTypeSupported: String, CaseIterable {
|
||||
} else if isGif, let transferable = await getGifTransferable(item: item) {
|
||||
return transferable
|
||||
}
|
||||
if self == .jpeg || self == .png || self == .tiff || self == .image {
|
||||
if self == .jpeg || self == .png || self == .tiff || self == .image || self == .uiimage {
|
||||
if let imageURL = result as? URL,
|
||||
let data = try? Data(contentsOf: imageURL),
|
||||
let image = UIImage(data: data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user