---
title: "init(from:)"
framework: weatherkit
role: symbol
role_heading: Initializer
path: "weatherkit/forecast/init(from:)-4wobg"
---

# init(from:)

## Declaration

```swift
init(from decoder: any Decoder) throws
```

## See Also

### Creating the forecast

- [init(from:)](weatherkit/forecast/init(from:)-390k1.md)
