SettingsRootView.swift 487 B

1234567891011121314151617
  1. import SwiftUI
  2. extension Settings {
  3. struct RootView: BaseView {
  4. @EnvironmentObject var viewModel: ViewModel<Provider>
  5. var body: some View {
  6. // Form {
  7. // Text("Open Editor").modal(for: .configEditor, from: self)
  8. // Text("Nightscout").modal(for: .nighscoutConfig, from: self)
  9. // }
  10. GlucoseRangeView()
  11. .toolbar { ToolbarItem(placement: .principal) { Text("Settings") } }
  12. }
  13. }
  14. }