blob: 368676b10d9a05801bb16167598efcb9e07c252e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
import SwiftUI
struct SettingsDebugView: View {
@EnvironmentObject private var settingsManager: SettingsManager
var body: some View {
Button(action: {
#if DEBUG
settingsManager.addDummyBookmarks()
#endif
}) {
Text("Add Dummy Bookmarks")
}
#if os(macOS)
.frame(maxWidth: .infinity, alignment: .trailing)
#endif
Button(action: {
#if DEBUG
settingsManager.addDummySearchHistory()
#endif
}) {
Text("Add Dummy Search History")
}
#if os(macOS)
.frame(maxWidth: .infinity, alignment: .trailing)
#endif
}
}
|