SettingsNavigationViewController.swift 856 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // SettingsNavigationViewController.swift
  3. // LoopKitUI
  4. //
  5. // Created by Pete Schwamb on 1/29/19.
  6. // Copyright © 2019 LoopKit Authors. All rights reserved.
  7. //
  8. import HealthKit
  9. import LoopKit
  10. open class SettingsNavigationViewController: UINavigationController, CompletionNotifying {
  11. open weak var completionDelegate: CompletionDelegate?
  12. open func notifyComplete() {
  13. completionDelegate?.completionNotifyingDidComplete(self)
  14. }
  15. }
  16. open class CGMManagerSettingsNavigationViewController: SettingsNavigationViewController, CGMManagerOnboarding {
  17. open weak var cgmManagerOnboardingDelegate: CGMManagerOnboardingDelegate?
  18. }
  19. open class PumpManagerSettingsNavigationViewController: SettingsNavigationViewController, PumpManagerOnboarding {
  20. open weak var pumpManagerOnboardingDelegate: PumpManagerOnboardingDelegate?
  21. }