AlgorithmSettings.swift 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // FeatureSettingsView.swift
  3. // FreeAPS
  4. //
  5. // Created by Deniz Cengiz on 26.07.24.
  6. //
  7. import Foundation
  8. import SwiftUI
  9. import Swinject
  10. struct AlgorithmSettings: BaseView {
  11. let resolver: Resolver
  12. @ObservedObject var state: Settings.StateModel
  13. @Environment(\.colorScheme) var colorScheme
  14. @Environment(AppState.self) var appState
  15. var body: some View {
  16. Form {
  17. Section(
  18. header: Text("Oref Algorithm"),
  19. content: {
  20. Text("Autosens").navigationLink(to: .autosensSettings, from: self)
  21. Text("Super Micro Bolus (SMB)").navigationLink(to: .smbSettings, from: self)
  22. Text("Dynamic Settings").navigationLink(to: .dynamicISF, from: self)
  23. Text("Target Behavior").navigationLink(to: .targetBehavior, from: self)
  24. Text("Additionals").navigationLink(to: .algorithmAdvancedSettings, from: self)
  25. }
  26. ).listRowBackground(Color.chart)
  27. }
  28. .scrollContentBackground(.hidden)
  29. .background(appState.trioBackgroundColor(for: colorScheme))
  30. .navigationTitle("Algorithm Settings")
  31. .navigationBarTitleDisplayMode(.automatic)
  32. }
  33. }