diff options
| author | Fuwn <[email protected]> | 2025-06-11 20:28:50 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-06-11 20:28:50 -0700 |
| commit | e0041dd390688394ec3ad1a78baeef6048dec67b (patch) | |
| tree | 3032b5aa510636575fb4fa35c399781c7c041436 | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-e0041dd390688394ec3ad1a78baeef6048dec67b.tar.xz sora-testing-e0041dd390688394ec3ad1a78baeef6048dec67b.zip | |
feat: Development commit
| -rw-r--r-- | Sora/Views/Post/Details/PostDetailsImageView.swift | 6 | ||||
| -rw-r--r-- | Sora/Views/Post/Grid/PostGridView.swift | 2 |
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 |