]> git.r.bdr.sh - rbdr/captura/blob - Captura/Presentation/Settings/AdvancedSettings.swift
7ed78d967e2acd01951581f407901661d503a11d
[rbdr/captura] / Captura / Presentation / Settings / AdvancedSettings.swift
1 import SwiftUI
2
3 struct AdvancedSettings: View {
4
5 @AppStorage("backendUrl") var backendUrl: String = ""
6 @AppStorage("keepFiles") var keepFiles = true
7
8 var body: some View {
9 Form {
10 VStack (alignment: .leading) {
11 LabeledContent("Backend URL") {
12 TextField("", text: $backendUrl)
13 }.font(.headline)
14 LabeledContent("Keep files after remote upload") {
15 Toggle("", isOn: $keepFiles)
16 }.font(.headline)
17 HStack {
18 Text("These settings can break things!")
19 Button {
20 print("Not yet!")
21 } label: {
22 Image(systemName: "info.circle")
23 }.buttonStyle(.borderless)
24 }
25 }
26 }
27 }
28 }
29
30 #Preview {
31 OutputSettings()
32 }