]> git.r.bdr.sh - rbdr/captura/blame - Captura/Presentation/Settings/AdvancedSettings.swift
Separate some logic out of main app
[rbdr/captura] / Captura / Presentation / Settings / AdvancedSettings.swift
CommitLineData
a4e80427
RBR
1import SwiftUI
2
3struct 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}