currentWeather
TypeScriptget currentWeather(): CurrentWeatherSwift declarationvar currentWeather: CurrentWeatherThe current weather forecast.
struct · iOS 16.0+ · SDK 27.1
struct WeatherA model representing the aggregate weather data the caller requests.
get currentWeather(): CurrentWeatherSwift declarationvar currentWeather: CurrentWeatherThe current weather forecast.
set currentWeather(value: CurrentWeather)Swift declarationvar currentWeather: CurrentWeatherThe current weather forecast.
get availability(): WeatherAvailabilitySwift declarationvar availability: WeatherAvailabilityFlags containing information about data availability and attribution.
set availability(value: WeatherAvailability)Swift declarationvar availability: WeatherAvailabilityFlags containing information about data availability and attribution.
get dailyForecast(): Forecast<DayWeather>Swift declarationvar dailyForecast: Forecast<DayWeather>The daily forecast.
set dailyForecast(value: Forecast<DayWeather>)Swift declarationvar dailyForecast: Forecast<DayWeather>The daily forecast.
get weatherAlerts(): (Array<WeatherAlert>) | nullSwift declarationvar weatherAlerts: [WeatherAlert]?A list of severe weather alerts.
set weatherAlerts(value: (Array<WeatherAlert>) | null)Swift declarationvar weatherAlerts: [WeatherAlert]?A list of severe weather alerts.
get hourlyForecast(): Forecast<HourWeather>Swift declarationvar hourlyForecast: Forecast<HourWeather>The hourly forecast.
set hourlyForecast(value: Forecast<HourWeather>)Swift declarationvar hourlyForecast: Forecast<HourWeather>The hourly forecast.
get minuteForecast(): (Forecast<MinuteWeather>) | nullSwift declarationvar minuteForecast: Forecast<MinuteWeather>?The minute-by-minute forecast. Depending upon region support and data availability, this may be `nil`.
set minuteForecast(value: (Forecast<MinuteWeather>) | null)Swift declarationvar minuteForecast: Forecast<MinuteWeather>?The minute-by-minute forecast. Depending upon region support and data availability, this may be `nil`.
No declarations were skipped in this snapshot.