summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-03-15 05:50:05 -0700
committerFuwn <[email protected]>2025-03-15 05:50:05 -0700
commit1404cf99ea13290e35ad2fa520228267a4aba18a (patch)
tree14c1483f8313af5661318ddb1b13277528aeef9d
parentfeat: Development commit (diff)
downloadsora-testing-1404cf99ea13290e35ad2fa520228267a4aba18a.tar.xz
sora-testing-1404cf99ea13290e35ad2fa520228267a4aba18a.zip
feat: Development commit
-rw-r--r--Localizable.xcstrings10
-rw-r--r--Sora/Views/Post/Grid/PostGridView.swift30
2 files changed, 26 insertions, 14 deletions
diff --git a/Localizable.xcstrings b/Localizable.xcstrings
index 1b601f2..49d84af 100644
--- a/Localizable.xcstrings
+++ b/Localizable.xcstrings
@@ -4,6 +4,16 @@
"%lld" : {
},
+ "%lld/%lld" : {
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "%1$lld/%2$lld"
+ }
+ }
+ }
+ },
"Add" : {
},
diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift
index 8665ba7..9a4be18 100644
--- a/Sora/Views/Post/Grid/PostGridView.swift
+++ b/Sora/Views/Post/Grid/PostGridView.swift
@@ -119,22 +119,24 @@ struct PostGridView: View {
)
.frame(minHeight: 250)
}
- .gesture(
- DragGesture()
- .onEnded { value in
- if value.startLocation.x < 50 && value.translation.width > 100 {
- manager.goBackInHistory()
- debugPrint("ContentView: Swipe left, \(manager.searchHistory)")
- }
+ #if !os(macOS)
+ .gesture(
+ DragGesture()
+ .onEnded { value in
+ if value.startLocation.x < 50 && value.translation.width > 100 {
+ manager.goBackInHistory()
+ debugPrint("ContentView: Swipe left, \(manager.searchHistory)")
+ }
- if value.startLocation.x > (UIScreen.main.bounds.width - 50)
- && value.translation.width < -100
- {
- manager.goForwardInHistory()
- debugPrint("ContentView: Swipe right, \(manager.searchHistory)")
+ if value.startLocation.x > (UIScreen.main.bounds.width - 50)
+ && value.translation.width < -100
+ {
+ manager.goForwardInHistory()
+ debugPrint("ContentView: Swipe right, \(manager.searchHistory)")
+ }
}
- }
- )
+ )
+ #endif
}
}