mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-25 17:51:01 +00:00
Composer: Fix sharing an UIImage directly
This commit is contained in:
parent
ea702e1101
commit
59d8346bc8
1 changed files with 3 additions and 1 deletions
|
@ -54,7 +54,9 @@ enum StatusEditorUTTypeSupported: String, CaseIterable {
|
|||
return transferable
|
||||
}
|
||||
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 image = UIImage(data: data)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue