summaryrefslogtreecommitdiff
path: root/Sora/Views/Post/Grid/PostGridView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Sora/Views/Post/Grid/PostGridView.swift')
-rw-r--r--Sora/Views/Post/Grid/PostGridView.swift8
1 files changed, 8 insertions, 0 deletions
diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift
index 6d1d198..8665ba7 100644
--- a/Sora/Views/Post/Grid/PostGridView.swift
+++ b/Sora/Views/Post/Grid/PostGridView.swift
@@ -89,6 +89,14 @@ struct PostGridView: View {
ProgressView()
}
}
+
+ #if DEBUG
+ if manager.historyIndex < manager.searchHistory.count {
+ ToolbarItem {
+ Text("\(manager.historyIndex + 1)/\(manager.searchHistory.count)")
+ }
+ }
+ #endif
#endif
if !manager.tags.isEmpty {