mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-23 15:40:37 +00:00
Shortcuts: Fix image
This commit is contained in:
parent
ee6f003073
commit
24d5ecd119
1 changed files with 3 additions and 1 deletions
|
@ -752,7 +752,7 @@ public extension StatusEditor {
|
|||
|
||||
for url in urls {
|
||||
let compressor = Compressor()
|
||||
|
||||
_ = url.startAccessingSecurityScopedResource()
|
||||
if let compressedData = await compressor.compressImageFrom(url: url),
|
||||
let image = UIImage(data: compressedData)
|
||||
{
|
||||
|
@ -765,6 +765,8 @@ public extension StatusEditor {
|
|||
error: nil
|
||||
))
|
||||
}
|
||||
|
||||
url.stopAccessingSecurityScopedResource()
|
||||
}
|
||||
|
||||
return containers
|
||||
|
|
Loading…
Reference in a new issue