diff options
| author | Fuwn <[email protected]> | 2025-09-22 02:22:32 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-09-22 02:22:32 -0700 |
| commit | 1d634eafc0c316e0a88d1e321a9025f1c944686a (patch) | |
| tree | 673eca151426d0db04ab4cbb3ff10f9ed2a9c8df /Sora/Views/Settings/Section/SettingsSectionDebugView.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-1d634eafc0c316e0a88d1e321a9025f1c944686a.tar.xz sora-testing-1d634eafc0c316e0a88d1e321a9025f1c944686a.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views/Settings/Section/SettingsSectionDebugView.swift')
| -rw-r--r-- | Sora/Views/Settings/Section/SettingsSectionDebugView.swift | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Sora/Views/Settings/Section/SettingsSectionDebugView.swift b/Sora/Views/Settings/Section/SettingsSectionDebugView.swift new file mode 100644 index 0000000..83acb81 --- /dev/null +++ b/Sora/Views/Settings/Section/SettingsSectionDebugView.swift @@ -0,0 +1,25 @@ +import SwiftUI + +struct SettingsSectionDebugView: View { + @EnvironmentObject private var settingsManager: SettingsManager + + var body: some View { + Button(action: { + #if DEBUG + settingsManager.addSampleBookmarks() + #endif + }) { + Text("Add Sample Bookmarks") + } + .trailingFrame() + + Button(action: { + #if DEBUG + settingsManager.addSampleSearchHistory() + #endif + }) { + Text("Add Sample Search History") + } + .trailingFrame() + } +} |