summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/Section/SettingsSectionDebugView.swift
blob: 83acb813bf6cd5c7fde5803d2593d7c1131d7d01 (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 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()
  }
}