| 1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // FeatureSettingsView.swift
- // FreeAPS
- //
- // Created by Deniz Cengiz on 26.07.24.
- //
- import Foundation
- import SwiftUI
- import Swinject
- struct AlgorithmSettings: BaseView {
- let resolver: Resolver
- @ObservedObject var state: Settings.StateModel
- @Environment(\.colorScheme) var colorScheme
- @Environment(AppState.self) var appState
- var body: some View {
- Form {
- Section(
- header: Text("Oref Algorithm"),
- content: {
- Text("Autosens").navigationLink(to: .autosensSettings, from: self)
- Text("Super Micro Bolus (SMB)").navigationLink(to: .smbSettings, from: self)
- Text("Dynamic Sensitivity").navigationLink(to: .dynamicISF, from: self)
- Text("Target Behavior").navigationLink(to: .targetBehavior, from: self)
- Text("Additionals").navigationLink(to: .algorithmAdvancedSettings, from: self)
- }
- ).listRowBackground(Color.chart)
- }
- .scrollContentBackground(.hidden)
- .background(appState.trioBackgroundColor(for: colorScheme))
- .navigationTitle("Algorithm Settings")
- .navigationBarTitleDisplayMode(.automatic)
- }
- }
|