mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-02-05 00:47:36 +01:00
Composer: Fix sharing an UIImage directly
This commit is contained in:
parent
ea702e1101
commit
59d8346bc8
@ -54,7 +54,9 @@ enum StatusEditorUTTypeSupported: String, CaseIterable {
|
|||||||
return transferable
|
return transferable
|
||||||
}
|
}
|
||||||
if self == .jpeg || self == .png || self == .tiff || self == .image || self == .uiimage {
|
if self == .jpeg || self == .png || self == .tiff || self == .image || self == .uiimage {
|
||||||
if let imageURL = result as? URL,
|
if let image = result as? UIImage {
|
||||||
|
return image
|
||||||
|
} else if let imageURL = result as? URL,
|
||||||
let data = try? Data(contentsOf: imageURL),
|
let data = try? Data(contentsOf: imageURL),
|
||||||
let image = UIImage(data: data)
|
let image = UIImage(data: data)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user