summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-06-11 20:28:50 -0700
committerFuwn <[email protected]>2025-06-11 20:28:50 -0700
commite0041dd390688394ec3ad1a78baeef6048dec67b (patch)
tree3032b5aa510636575fb4fa35c399781c7c041436
parentfeat: Development commit (diff)
downloadsora-testing-e0041dd390688394ec3ad1a78baeef6048dec67b.tar.xz
sora-testing-e0041dd390688394ec3ad1a78baeef6048dec67b.zip
feat: Development commit
-rw-r--r--Sora/Views/Post/Details/PostDetailsImageView.swift6
-rw-r--r--Sora/Views/Post/Grid/PostGridView.swift2
2 files changed, 4 insertions, 4 deletions
diff --git a/Sora/Views/Post/Details/PostDetailsImageView.swift b/Sora/Views/Post/Details/PostDetailsImageView.swift
index 483d435..0ab28c4 100644
--- a/Sora/Views/Post/Details/PostDetailsImageView.swift
+++ b/Sora/Views/Post/Details/PostDetailsImageView.swift
@@ -213,10 +213,10 @@ struct PostDetailsImageView<Placeholder: View>: View {
#endif
private func openURL(_ url: URL) {
- #if os(iOS)
- UIApplication.shared.open(url)
- #else
+ #if os(macOS)
NSWorkspace.shared.open(url)
+ #else
+ UIApplication.shared.open(url)
#endif
}
diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift
index 1d90f42..9fd384c 100644
--- a/Sora/Views/Post/Grid/PostGridView.swift
+++ b/Sora/Views/Post/Grid/PostGridView.swift
@@ -164,7 +164,7 @@ struct PostGridView: View {
)
.frame(minHeight: 250)
}
- #if !os(macOS)
+ #if os(iOS)
.gesture(
DragGesture()
.onEnded { value in