<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WeatherKit",
  "identifier" : "/documentation/WeatherKit/DailyWeatherStatistics",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "WeatherKit"
    ],
    "preciseIdentifier" : "s:10WeatherKit05DailyA10StatisticsV"
  },
  "title" : "DailyWeatherStatistics"
}
-->

# DailyWeatherStatistics

A structure that holds a collection of day weather statistics data.

```
struct DailyWeatherStatistics<T> where T : Decodable, T : Encodable, T : Equatable, T : Sendable
```

## Overview

Weather statistics for each day are derived from data for that day, collected over all years since the baseline start date.

## Topics

### Instance Properties

[`var baselineStartDate: Date`](/documentation/WeatherKit/DailyWeatherStatistics/baselineStartDate)

The year the statistics collection began.

[`var days: [T]`](/documentation/WeatherKit/DailyWeatherStatistics/days)

An ordered collection of day weather statistics data of type `T`, for each requested day.

[`var endIndex: DailyWeatherStatistics<T>.Index`](/documentation/WeatherKit/DailyWeatherStatistics/endIndex)

The end index for the daily weather statistics.

[`var metadata: WeatherMetadata`](/documentation/WeatherKit/DailyWeatherStatistics/metadata)

Descriptive information about the weather statistics data.

[`var startIndex: DailyWeatherStatistics<T>.Index`](/documentation/WeatherKit/DailyWeatherStatistics/startIndex)

The start index for the daily weather statistics.

### Subscripts

[`subscript(DailyWeatherStatistics<T>.Index) -> DailyWeatherStatistics<T>.Element`](/documentation/WeatherKit/DailyWeatherStatistics/subscript(_:))

The day weather statistics at the provided index.

## Relationships

### Conforms To

[`Decodable`](/documentation/Swift/Decodable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Encodable`](/documentation/Swift/Encodable)

[`BidirectionalCollection`](/documentation/Swift/BidirectionalCollection)

[`Collection`](/documentation/Swift/Collection)

[`RandomAccessCollection`](/documentation/Swift/RandomAccessCollection)

[`Sequence`](/documentation/Swift/Sequence)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)