GlucoseColorScheme.swift 469 B

1234567891011121314151617181920212223
  1. //
  2. // GlucoseColorScheme.swift
  3. // FreeAPS
  4. //
  5. // Created by Cengiz Deniz on 27.09.24.
  6. //
  7. import Foundation
  8. public enum GlucoseColorScheme: String, JSON, CaseIterable, Identifiable, Codable, Hashable {
  9. public var id: String { rawValue }
  10. case staticColor
  11. case dynamicColor
  12. var displayName: String {
  13. switch self {
  14. case .staticColor:
  15. return "Static"
  16. case .dynamicColor:
  17. return "Dynamic"
  18. }
  19. }
  20. }