---
title: "subscript(_:)"
framework: weatherkit
role: symbol
role_heading: Instance Subscript
path: "weatherkit/forecast/subscript(_:)"
---

# subscript(_:)

The forecast element at the provided index.

## Declaration

```swift
subscript(position: Forecast<Element>.Index) -> Element { get }
```

## See Also

### Accessing elements

- [Forecast.Index](weatherkit/forecast/index.md)
