Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 480 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 480 Bytes

Titanium iOS 16+ WeatherKit

Use the iOS 16+ WeatherKit APIs in Titanium!

Requirements

  • Xcode 14+
  • iOS 16+
  • WeatherKit enabled in the developer portal / entitlements

Example

import WeatherKit from 'ti.weatherkit';

WeatherKit.getWeather({
  latitude: 37.322998,
  longitude: -122.032181,
  callback: event => {
    console.warn(event.currentWeather);
  }
});

Author

Hans Knöchel

License

MIT