diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2024-10-22 23:22:25 -0600 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2024-10-22 23:22:25 -0600 |
commit | 6df95ba6282a4d0864a10cdee7f00f8cde061135 (patch) | |
tree | 4daad0ccd056e949c122c06ceb4c9e190d7ba38c /iTexSnip/Views/PreferencesView.swift | |
parent | d5a52a1f01e9b1af5e3ea1dfd7d45865c97c9ade (diff) |
swift-format
Diffstat (limited to 'iTexSnip/Views/PreferencesView.swift')
-rw-r--r-- | iTexSnip/Views/PreferencesView.swift | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/iTexSnip/Views/PreferencesView.swift b/iTexSnip/Views/PreferencesView.swift index 1f9d514..2e1cc38 100644 --- a/iTexSnip/Views/PreferencesView.swift +++ b/iTexSnip/Views/PreferencesView.swift @@ -8,23 +8,24 @@ import SwiftUI struct PreferencesView: View { - @AppStorage("apiEndpoint") var apiEndpoint: String = "https://snippetfeedback.itexsnip.navan.dev/rate_snippet" - @AppStorage("loadModelOnStart") var loadModelOnStart: Bool = true - @AppStorage("showOriginalImage") var showOriginalImage: Bool = false - - var body: some View { - Form { - Section(header: Text("API Settings")) { - TextField("Rating API Endpoint", text: $apiEndpoint) - .textFieldStyle(RoundedBorderTextFieldStyle()) - } - - Section(header: Text("Application Settings")) { - Toggle("Load model on app start", isOn: $loadModelOnStart) - Toggle("Show original image by default", isOn: $showOriginalImage) - } - } - .padding(20) - .frame(width: 400, height: 200) + @AppStorage("apiEndpoint") var apiEndpoint: String = + "https://snippetfeedback.itexsnip.navan.dev/rate_snippet" + @AppStorage("loadModelOnStart") var loadModelOnStart: Bool = true + @AppStorage("showOriginalImage") var showOriginalImage: Bool = false + + var body: some View { + Form { + Section(header: Text("API Settings")) { + TextField("Rating API Endpoint", text: $apiEndpoint) + .textFieldStyle(RoundedBorderTextFieldStyle()) + } + + Section(header: Text("Application Settings")) { + Toggle("Load model on app start", isOn: $loadModelOnStart) + Toggle("Show original image by default", isOn: $showOriginalImage) + } } + .padding(20) + .frame(width: 400, height: 200) + } } |