SwiftBindings.Apple.WeatherKit
26.2.1
See the version list below for details.
dotnet add package SwiftBindings.Apple.WeatherKit --version 26.2.1
NuGet\Install-Package SwiftBindings.Apple.WeatherKit -Version 26.2.1
<PackageReference Include="SwiftBindings.Apple.WeatherKit" Version="26.2.1" />
<PackageVersion Include="SwiftBindings.Apple.WeatherKit" Version="26.2.1" />
<PackageReference Include="SwiftBindings.Apple.WeatherKit" />
paket add SwiftBindings.Apple.WeatherKit --version 26.2.1
#r "nuget: SwiftBindings.Apple.WeatherKit, 26.2.1"
#:package SwiftBindings.Apple.WeatherKit@26.2.1
#addin nuget:?package=SwiftBindings.Apple.WeatherKit&version=26.2.1
#tool nuget:?package=SwiftBindings.Apple.WeatherKit&version=26.2.1
SwiftBindings.Apple.WeatherKit
Native .NET bindings for Apple's WeatherKit framework — current conditions, hourly and daily forecasts, severe-weather alerts, and historical data. These are not Objective-C proxy wrappers; they use .NET 10's native Swift interop for direct, high-performance calls into Swift APIs from C#.
Installation
dotnet add package SwiftBindings.Apple.WeatherKit
Requirements
- .NET 10.0+
- iOS 26.2+, macOS 26.2+, Mac Catalyst 26.2+, tvOS 26.2+
- macOS host for development
- WeatherKit capability enabled and a paid Apple Developer Program membership (WeatherKit usage is metered and requires entitlement)
Usage
using WeatherKit;
var service = WeatherService.Shared;
// Get current attribution (logo + URL link required by Apple's terms)
var attribution = await service.GetAttributionAsync();
// Localised condition / phase descriptions
var phase = MoonPhase.Full.GetDescription();
var direction = Wind.CompassDirectionType.North.GetDescription();
Iterating a forecast
Forecast<T> projects to IReadOnlyList<T>, so the standard C# enumeration shape just works:
// `weather` is an instance returned by WeatherService.GetWeatherAsync(...)
foreach (var hour in weather.HourlyForecast)
{
Console.WriteLine($"{hour.Date}: {hour.Temperature}");
}
var firstDay = weather.DailyForecast[0];
var dayCount = weather.DailyForecast.Count;
Documentation
How It Works
These bindings are auto-generated by Swift Dotnet Bindings using .NET 10's native Swift interop via the SwiftBindings SDK.
License
The bindings are MIT licensed. WeatherKit is part of the Apple SDK; refer to Apple's licensing for the underlying framework.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-ios26.2 is compatible. net10.0-maccatalyst26.2 is compatible. net10.0-macos26.2 is compatible. net10.0-tvos26.2 is compatible. |
-
net10.0-ios26.2
- SwiftBindings.Apple (>= 26.2.1)
- SwiftBindings.Runtime (>= 0.9.0 && < 0.10.0)
-
net10.0-maccatalyst26.2
- SwiftBindings.Apple (>= 26.2.1)
- SwiftBindings.Runtime (>= 0.9.0 && < 0.10.0)
-
net10.0-macos26.2
- SwiftBindings.Apple (>= 26.2.1)
- SwiftBindings.Runtime (>= 0.9.0 && < 0.10.0)
-
net10.0-tvos26.2
- SwiftBindings.Apple (>= 26.2.1)
- SwiftBindings.Runtime (>= 0.9.0 && < 0.10.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 26.2.15 | 105 | 9/22/2026 |
| 26.2.14 | 110 | 9/5/2026 |
| 26.2.13 | 106 | 9/2/2026 |
| 26.2.12 | 115 | 8/29/2026 |
| 26.2.11 | 107 | 8/24/2026 |
| 26.2.10 | 130 | 8/5/2026 |
| 26.2.9 | 125 | 7/31/2026 |
| 26.2.8 | 148 | 6/27/2026 |
| 26.2.7 | 137 | 6/15/2026 |
| 26.2.6 | 147 | 6/11/2026 |
| 26.2.5 | 148 | 6/1/2026 |
| 26.2.3 | 132 | 5/19/2026 |
| 26.2.1 | 131 | 5/3/2026 |