diff options
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() + } +} |