TotalInsulinDisplayType.swift 574 B

1234567891011121314151617181920212223
  1. //
  2. // TotalInsulinDisplayType.swift
  3. // FreeAPS
  4. //
  5. // Created by Cengiz Deniz on 25.08.24.
  6. //
  7. import Foundation
  8. enum TotalInsulinDisplayType: String, JSON, CaseIterable, Identifiable, Codable, Hashable {
  9. var id: String { rawValue }
  10. case totalDailyDose
  11. case totalInsulinInScope
  12. var displayName: String {
  13. switch self {
  14. case .totalDailyDose:
  15. return NSLocalizedString("Total Daily Dose", comment: "")
  16. case .totalInsulinInScope:
  17. return NSLocalizedString("Total Insulin in Scope", comment: "")
  18. }
  19. }
  20. }