SwiftenumHealthKit

enum HealthKit.SleepStatisticsInterval

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 8

  1. casecase hourly
  2. casecase sleepDay
  3. casecase sleepMonth
  4. casecase sleepWeek
  5. funccomputeAnchorDate(for: Foundation.Date, gregorianCalendar: Foundation.Calendar) -> Foundation.Date?
  6. funccomputeIntervalComponents(for: HealthKit.SleepDaySummaryCollection.Grouping) -> Foundation.DateComponents?
  7. typealiastypealias RawValue = Swift.String
  8. varvar description: String { get }
enum SleepStatisticsInterval {
    case hourly
    case sleepDay
    case sleepWeek
    case sleepMonth

    var description: Swift.String {
        get
    }

    func computeIntervalComponents(for: HealthKit.SleepDaySummaryCollection.Grouping) -> Foundation.DateComponents?
    func computeAnchorDate(for: Foundation.Date, gregorianCalendar: Foundation.Calendar) -> Foundation.Date?
}