SwiftBindings.Apple.WorkoutKit
27.2.0
dotnet add package SwiftBindings.Apple.WorkoutKit --version 27.2.0
NuGet\Install-Package SwiftBindings.Apple.WorkoutKit -Version 27.2.0
<PackageReference Include="SwiftBindings.Apple.WorkoutKit" Version="27.2.0" />
<PackageVersion Include="SwiftBindings.Apple.WorkoutKit" Version="27.2.0" />
<PackageReference Include="SwiftBindings.Apple.WorkoutKit" />
paket add SwiftBindings.Apple.WorkoutKit --version 27.2.0
#r "nuget: SwiftBindings.Apple.WorkoutKit, 27.2.0"
#:package SwiftBindings.Apple.WorkoutKit@27.2.0
#addin nuget:?package=SwiftBindings.Apple.WorkoutKit&version=27.2.0
#tool nuget:?package=SwiftBindings.Apple.WorkoutKit&version=27.2.0
SwiftBindings.Apple.WorkoutKit
Native .NET bindings for Apple's WorkoutKit framework — building custom workouts, single-goal and pacer workouts, interval blocks, and scheduling them to Apple Watch. These are not Objective-C proxy wrappers; they use .NET's native Swift interop for direct, high-performance calls into Swift APIs from C#.
📖 Full usage guide → — goals, steps, interval blocks, alerts, the four workout types, plans, and scheduling, with the exact emitted C# signatures.
Installation
dotnet add package SwiftBindings.Apple.WorkoutKit
Requirements
- .NET 10 with Xcode 26 or 27, or .NET 11 with Xcode 27.2. Install the .NET workload released for your Xcode version (see Choosing .NET and Xcode).
- Target framework: Use versionless
net10.0-iosornet11.0-ios(or the matching-macosor-maccatalystTFM). The package includes a build for each supported .NET and Xcode pairing, and NuGet restores the one matching your toolchain. Pinning an older platform version (for example,net10.0-ios18.0) fails restore withNU1202. The target framework sets the .NET platform version you compile against, not your app's deployment minimum. - Deployment minimum is separate — set your app's real minimum OS with
<SupportedOSPlatformVersion>(independent of the TFM above). Individual APIs that need a newer OS at runtime are gated by generated[SupportedOSPlatform]attributes; the C# compiler flags a call that isn't valid for your target. - macOS host for development
- A paired Apple Watch and the companion watchOS app for scheduling to actually deliver
Usage
using WorkoutKit;
// Inspect scheduler authorization and capability
var status = WorkoutScheduler.AuthorizationStateKind.Authorized;
// var maxScheduled = WorkoutScheduler.Shared.MaxAllowedScheduledWorkoutCount;
// var isSupported = WorkoutScheduler.IsSupported;
// Build workout primitives
var step = new IntervalStep(IntervalStep.PurposeKind.Work);
CustomWorkout, SingleGoalWorkout, PacerWorkout, SwimBikeRunWorkout, IntervalBlock, IntervalStep, WorkoutPlan, ScheduledWorkoutPlan, the alert types, and WorkoutScheduler are all bound. See Apple's documentation for the full builder/scheduling flow.
Documentation
- Usage guide (wiki) — full C# walkthrough of the binding surface
- Apple WorkoutKit framework
Caveats
WorkoutScheduler (Shared, MaxAllowedScheduledWorkoutCount, IsSupported, ScheduleAsync) is bound and exercised end-to-end. HealthKit-backed writes are out-of-scope for this SDK version — the scheduler can schedule workouts, but mutating HealthKit data models from the bound surface is not yet supported.
How It Works
These bindings are auto-generated by Swift Dotnet Bindings using .NET's native Swift interop via the SwiftBindings SDK.
License
The bindings are MIT licensed. WorkoutKit 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.0 is compatible. net10.0-ios27.2 is compatible. net10.0-maccatalyst26.0 is compatible. net10.0-maccatalyst27.2 is compatible. net10.0-macos26.0 is compatible. net10.0-macos27.2 is compatible. net11.0-ios27.2 is compatible. net11.0-maccatalyst27.2 is compatible. net11.0-macos27.2 is compatible. |
-
net10.0-ios26.0
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.0)
-
net10.0-ios27.2
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.0)
-
net10.0-maccatalyst26.0
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.0)
-
net10.0-maccatalyst27.2
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.0)
-
net10.0-macos26.0
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.0)
-
net10.0-macos27.2
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.0)
-
net11.0-ios27.2
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.0)
-
net11.0-maccatalyst27.2
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.0)
-
net11.0-macos27.2
- SwiftBindings.Apple (>= 27.2.0)
- SwiftBindings.Runtime (>= 11.0.0 && < 11.1.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 |
|---|---|---|
| 27.2.0 | 95 | 11/30/2026 |
| 26.2.16 | 136 | 10/28/2026 |
| 26.2.15 | 147 | 9/22/2026 |
| 26.2.14 | 139 | 9/5/2026 |
| 26.2.13 | 134 | 9/2/2026 |
| 26.2.12 | 137 | 8/29/2026 |
| 26.2.11 | 149 | 8/24/2026 |
| 26.2.10 | 141 | 8/5/2026 |
| 26.2.9 | 146 | 7/31/2026 |
| 26.2.8 | 155 | 6/27/2026 |
| 26.2.7 | 148 | 6/15/2026 |
| 26.2.6 | 152 | 6/11/2026 |
| 26.2.5 | 154 | 6/1/2026 |
| 26.2.3 | 140 | 5/19/2026 |
| 26.2.1 | 136 | 5/3/2026 |