summaryrefslogtreecommitdiff
path: root/Sora/Other/AsyncImageWithPreview.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-22 00:28:09 -0800
committerFuwn <[email protected]>2025-02-22 00:28:09 -0800
commit7b470cd80eea4b4ef72a3ca8726b8a72a58b01ee (patch)
treef76b65f0ca2152ce17200506e7971edd2f5a52ac /Sora/Other/AsyncImageWithPreview.swift
parentfeat: Development commit (diff)
downloadsora-testing-7b470cd80eea4b4ef72a3ca8726b8a72a58b01ee.tar.xz
sora-testing-7b470cd80eea4b4ef72a3ca8726b8a72a58b01ee.zip
feat: Development commit
Diffstat (limited to 'Sora/Other/AsyncImageWithPreview.swift')
-rw-r--r--Sora/Other/AsyncImageWithPreview.swift9
1 files changed, 6 insertions, 3 deletions
diff --git a/Sora/Other/AsyncImageWithPreview.swift b/Sora/Other/AsyncImageWithPreview.swift
index 48df44e..c1a7188 100644
--- a/Sora/Other/AsyncImageWithPreview.swift
+++ b/Sora/Other/AsyncImageWithPreview.swift
@@ -126,7 +126,8 @@ struct AsyncImageWithPreview<Placeholder: View>: View {
guard let data, let uiImage = UIImage(data: data) else { return }
UIImageWriteToSavedPhotosAlbum(uiImage, nil, nil, nil)
- }.resume()
+ }
+ .resume()
} label: {
Label("Save Image", systemImage: "square.and.arrow.down")
}
@@ -135,10 +136,12 @@ struct AsyncImageWithPreview<Placeholder: View>: View {
#if os(iOS)
Button {
let activityViewController = UIActivityViewController(
- activityItems: [url ?? URL(string: "")!], applicationActivities: nil)
+ activityItems: [url ?? URL(string: "")!], applicationActivities: nil
+ )
UIApplication.shared.windows.first?.rootViewController?.present(
- activityViewController, animated: true)
+ activityViewController, animated: true
+ )
} label: {
Label("Share Image", systemImage: "square.and.arrow.up")
}