| 123456789101112131415161718192021222324252627282930 |
- import LoopKit
- import LoopKitUI
- extension PumpManager {
- var rawValue: [String: Any] {
- [
- "managerIdentifier": type(of: self).managerIdentifier,
- "state": rawState
- ]
- }
- }
- extension PumpManagerUI {
- static func setupViewController() -> PumpManagerSetupViewController & UIViewController & CompletionNotifying {
- setupViewController(
- insulinTintColor: .accentColor,
- guidanceColors: GuidanceColors(acceptable: .green, warning: .orange, critical: .red),
- allowedInsulinTypes: [.apidra, .humalog, .novolog, .fiasp]
- )
- }
- func settingsViewController() -> UIViewController {
- settingsViewController(
- insulinTintColor: .accentColor,
- guidanceColors: GuidanceColors(acceptable: .green, warning: .orange, critical: .red),
- allowedInsulinTypes: [.apidra, .humalog, .novolog, .fiasp]
- )
- }
- }
|