SwiftBindings.Apple.MusicKit
26.2.6
dotnet add package SwiftBindings.Apple.MusicKit --version 26.2.6
NuGet\Install-Package SwiftBindings.Apple.MusicKit -Version 26.2.6
<PackageReference Include="SwiftBindings.Apple.MusicKit" Version="26.2.6" />
<PackageVersion Include="SwiftBindings.Apple.MusicKit" Version="26.2.6" />
<PackageReference Include="SwiftBindings.Apple.MusicKit" />
paket add SwiftBindings.Apple.MusicKit --version 26.2.6
#r "nuget: SwiftBindings.Apple.MusicKit, 26.2.6"
#:package SwiftBindings.Apple.MusicKit@26.2.6
#addin nuget:?package=SwiftBindings.Apple.MusicKit&version=26.2.6
#tool nuget:?package=SwiftBindings.Apple.MusicKit&version=26.2.6
SwiftBindings.Apple.MusicKit
Native .NET bindings for Apple's MusicKit framework — Apple Music catalog access, library access, and playback. 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#.
📖 Full usage guide → — authorization, subscription status, catalog search, recommendations, library editing, and playback, mapped to the generated C# surface.
Installation
dotnet add package SwiftBindings.Apple.MusicKit
Requirements
- .NET 10.0+
- iOS 26.2+, macOS 26.2+, Mac Catalyst 26.2+, tvOS 26.2+
- macOS host for development
- MusicKit capability enabled on the app and an Apple Music subscription for playback
Usage
Authorization
using MusicKit;
var status = MusicAuthorization.CurrentStatus;
if (status == MusicAuthorization.Status.NotDetermined)
{
// Prompt the user via MusicAuthorization.RequestAsync()
}
Audio variants
foreach (var variant in AudioVariantExtensions.AllCases)
{
Console.WriteLine($"{variant} → {variant.GetDescription()}");
}
var dolby = AudioVariant.DolbyAtmos.GetDescription();
MusicItemCollection<T> projects to a fully indexed C# collection (Index, FormIndex, Distance, indexed index(_:offsetBy:) are all concrete methods, not stubs).
Documentation
- Usage guide (wiki) — full C# walkthrough of the binding surface
- Apple MusicKit framework
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. MusicKit 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.6)
- SwiftBindings.Runtime (>= 0.14.0 && < 0.15.0)
-
net10.0-maccatalyst26.2
- SwiftBindings.Apple (>= 26.2.6)
- SwiftBindings.Runtime (>= 0.14.0 && < 0.15.0)
-
net10.0-macos26.2
- SwiftBindings.Apple (>= 26.2.6)
- SwiftBindings.Runtime (>= 0.14.0 && < 0.15.0)
-
net10.0-tvos26.2
- SwiftBindings.Apple (>= 26.2.6)
- SwiftBindings.Runtime (>= 0.14.0 && < 0.15.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.