| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- //
- // FeatureSettingsView.swift
- // FreeAPS
- //
- // Created by Deniz Cengiz on 26.07.24.
- //
- import Foundation
- import SwiftUI
- import Swinject
- struct FeatureSettingsView: 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("Trio Features"),
- content: {
- Text("Bolus Calculator").navigationLink(to: .bolusCalculatorConfig, from: self)
- Text("Meal Settings").navigationLink(to: .mealSettings, from: self)
- Text("Shortcuts").navigationLink(to: .shortcutsConfig, from: self)
- Text("Remote Control").navigationLink(to: .remoteControlConfig, from: self)
- }
- )
- .listRowBackground(Color.chart)
- Section(
- header: Text("Trio Personalization"),
- content: {
- Text("User Interface").navigationLink(to: .userInterfaceSettings, from: self)
- Text("App Icons").navigationLink(to: .iconConfig, from: self)
- }
- )
- .listRowBackground(Color.chart)
- // Section(
- // header: Text("Data-Driven Settings Tuning"),
- // content: {
- // Text("Autotune").navigationLink(to: .autotuneConfig, from: self)
- // }
- // )
- .listRowBackground(Color.chart)
- }
- .scrollContentBackground(.hidden)
- .background(appState.trioBackgroundColor(for: colorScheme))
- .navigationTitle("Feature Settings")
- .navigationBarTitleDisplayMode(.automatic)
- }
- }
|