summaryrefslogtreecommitdiff
path: root/Sora/Views/Post/Details
diff options
context:
space:
mode:
Diffstat (limited to 'Sora/Views/Post/Details')
-rw-r--r--Sora/Views/Post/Details/PostDetailsImageView.swift6
1 files changed, 3 insertions, 3 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
}