DeviceStatusBadge.swift 483 B

12345678910111213141516171819202122
  1. //
  2. // DeviceStatusBadge.swift
  3. // LoopKit
  4. //
  5. // Created by Nathaniel Hamming on 2021-02-16.
  6. // Copyright © 2021 LoopKit Authors. All rights reserved.
  7. //
  8. import UIKit
  9. import LoopKit
  10. public protocol DeviceStatusBadge {
  11. /// the image to present as the badge
  12. var image: UIImage? { get }
  13. /// the state of the status badge (guides presentation)
  14. var state: DeviceStatusBadgeState { get }
  15. }
  16. public typealias DeviceStatusBadgeState = DeviceStatusElementState