]>
Commit | Line | Data |
---|---|---|
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 | } |