LiveActivityAttributes.swift 547 B

1234567891011121314151617181920212223
  1. import ActivityKit
  2. import Foundation
  3. struct LiveActivityAttributes: ActivityAttributes {
  4. public struct ContentState: Codable, Hashable {
  5. let bg: String
  6. let direction: String?
  7. let change: String
  8. let date: Date
  9. let chart: [Double]
  10. let chartDate: [Date?]
  11. let rotationDegrees: Double
  12. let highGlucose: Double
  13. let lowGlucose: Double
  14. let cob: Decimal
  15. let iob: Decimal
  16. let lockScreenView: String
  17. let unit: String
  18. }
  19. let startDate: Date
  20. }