summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/Section/SettingsDebugView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-03-02 05:30:49 -0800
committerFuwn <[email protected]>2025-03-02 05:30:49 -0800
commite4ac457d4f7599f6eb3416b9d4b0c46ee6449c9f (patch)
tree14dc358b49317eeee08c7e2d4bdee747ef432cf8 /Sora/Views/Settings/Section/SettingsDebugView.swift
parentfeat: Development commit (diff)
downloadsora-testing-e4ac457d4f7599f6eb3416b9d4b0c46ee6449c9f.tar.xz
sora-testing-e4ac457d4f7599f6eb3416b9d4b0c46ee6449c9f.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/Settings/Section/SettingsDebugView.swift')
-rw-r--r--Sora/Views/Settings/Section/SettingsDebugView.swift20
1 files changed, 20 insertions, 0 deletions
diff --git a/Sora/Views/Settings/Section/SettingsDebugView.swift b/Sora/Views/Settings/Section/SettingsDebugView.swift
new file mode 100644
index 0000000..af55745
--- /dev/null
+++ b/Sora/Views/Settings/Section/SettingsDebugView.swift
@@ -0,0 +1,20 @@
+import SwiftUI
+
+struct SettingsDebugView: View {
+ @EnvironmentObject private var settingsManager: SettingsManager
+ var body: some View {
+ Button(action: { settingsManager.addDummyBookmarks() }) {
+ Text("Add Dummy Bookmarks")
+ }
+ #if os(macOS)
+ .frame(maxWidth: .infinity, alignment: .trailing)
+ #endif
+
+ Button(action: { settingsManager.addDummySearchHistory() }) {
+ Text("Add Dummy Search History")
+ }
+ #if os(macOS)
+ .frame(maxWidth: .infinity, alignment: .trailing)
+ #endif
+ }
+}