Contents

Forecast

A forecast collection for minute, hourly, and daily forecasts.

Declaration

struct Forecast<Element> where Element : Decodable, Element : Encodable, Element : Equatable, Element : Sendable

Overview

Forecast conforms to the RandomAccessCollection protocol to support efficient random-access index traversal through forecast types. The protocol involves forwarding the required properties and methods to the underlying forecast collection. The implementation of subscript returns an instance of the Element type.

Topics

Creating the forecast

Serializing objects

Getting the properties

Accessing elements

Comparing forecasts

See Also

Alerts and forecasts