HKQuantity.swift 333 B

12345678910111213141516171819
  1. //
  2. // HKQuantity.swift
  3. // LoopKit
  4. //
  5. // Created by Nathan Racklyeft on 3/10/16.
  6. // Copyright © 2016 Nathan Racklyeft. All rights reserved.
  7. //
  8. import Foundation
  9. import HealthKit
  10. extension HKQuantity: Comparable { }
  11. public func <(lhs: HKQuantity, rhs: HKQuantity) -> Bool {
  12. return lhs.compare(rhs) == .orderedAscending
  13. }