LiveActitiyShared.swift 522 B

12345678910111213141516171819202122
  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. }
  18. let startDate: Date
  19. }