| 123456789101112131415161718192021 |
- import SwiftUI
- import Swinject
- extension NotificationsConfig {
- struct RootView: BaseView {
- let resolver: Resolver
- @StateObject var state = StateModel()
- var body: some View {
- Form {
- Section(header: Text("Glucose")) {
- Toggle("Show glucose on the app badge", isOn: $state.glucoseBadge)
- }
- }
- .onAppear(perform: configureView)
- .navigationBarTitle("Notifications")
- .navigationBarTitleDisplayMode(.automatic)
- }
- }
- }
|