diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-08-02 22:23:48 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-08-02 22:23:48 +0200 |
| commit | e42019cd38b59e757f6036b132614a471d4cf6fe (patch) | |
| tree | 2c95f67640d01a63ef9696ec23d429b866d87293 /Captura/Presentation | |
| parent | 153f3309127a4f9d898310224a467d11eef0f2ff (diff) | |
Adds configure support for URLs
Diffstat (limited to 'Captura/Presentation')
| -rw-r--r-- | Captura/Presentation/Settings/AdvancedSettings.swift | 9 | ||||
| -rw-r--r-- | Captura/Presentation/Settings/OutputSettings.swift | 5 |
2 files changed, 6 insertions, 8 deletions
diff --git a/Captura/Presentation/Settings/AdvancedSettings.swift b/Captura/Presentation/Settings/AdvancedSettings.swift index 66314b4..cf5794e 100644 --- a/Captura/Presentation/Settings/AdvancedSettings.swift +++ b/Captura/Presentation/Settings/AdvancedSettings.swift @@ -1,12 +1,11 @@ import SwiftUI -import CloudStorage struct AdvancedSettings: View { - @CloudStorage("backendUrl") var backendUrl: String = "" - @CloudStorage("backendFormat") var backendFormat: OutputFormatSetting = .gifOnly - @CloudStorage("keepFiles") var keepFiles = true - @CloudStorage("allowURLAutomation") var allowURLAutomation = false + @AppStorage("backendUrl") var backendUrl: String = "" + @AppStorage("backendFormat") var backendFormat: OutputFormatSetting = .gifOnly + @AppStorage("keepFiles") var keepFiles = true + @AppStorage("allowURLAutomation") var allowURLAutomation = false @State var showConfirmation = false private var anyState: String { "\(backendUrl), \(backendFormat), \(keepFiles), \(allowURLAutomation)" } diff --git a/Captura/Presentation/Settings/OutputSettings.swift b/Captura/Presentation/Settings/OutputSettings.swift index cce34ea..c59afd7 100644 --- a/Captura/Presentation/Settings/OutputSettings.swift +++ b/Captura/Presentation/Settings/OutputSettings.swift @@ -1,10 +1,9 @@ import SwiftUI -import CloudStorage struct OutputSettings: View { - @CloudStorage("outputFormats") var outputFormats: OutputFormatSetting = .all - @CloudStorage("frameRate") var frameRate = 10.0 + @AppStorage("outputFormats") var outputFormats: OutputFormatSetting = .all + @AppStorage("frameRate") var frameRate = 10.0 private var anyState: String { "\(outputFormats), \(frameRate)" } |