Skip to content

hansemannn/titanium-weather-kit

Repository files navigation

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