summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/Section/SettingsDebugView.swift
blob: 81c7b68b3940f8205cf8697e0b9208968d89acf7 (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
import SwiftUI

struct SettingsDebugView: 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()
  }
}