SettingsRootView.swift 444 B

12345678910111213141516
  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. .toolbar { ToolbarItem(placement: .principal) { Text("Settings") } }
  11. }
  12. }
  13. }