musickit-audio

Integrate Apple Music playback, catalog search, and Now Playing metadata into iOS apps.

981|50|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/dpearson2699/swift-ios-skills --skill musickit-audio-dpearson2699
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: musickit-audio
Source: https://github.com/dpearson2699/swift-ios-skills/tree/main/skills/musickit-audio
Command: npx skills add https://github.com/dpearson2699/swift-ios-skills --skill musickit-audio-dpearson2699

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables seamless integration of Apple Music playback, catalog search, and Now Playing metadata into your iOS applications, enhancing user engagement with music features.

Core Features & Use Cases

  • Apple Music Integration: Leverage MusicKit for catalog search, playback, and subscription management.
  • Playback Control: Utilize ApplicationMusicPlayer for app-scoped music playback and queue management.
  • Now Playing & Remote Commands: Update Lock Screen/Control Center metadata and respond to media controls via MPNowPlayingInfoCenter and MPRemoteCommandCenter.
  • Use Case: Add a feature to your app that allows users to search for songs on Apple Music, play them directly within your app, and have the track information appear on their device's lock screen.

Quick Start

Use the musickit-audio skill to search for songs by the artist "The Beatles".

Frequently Asked Questions about musickit-audio

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate Apple Music playback into my iOS app?

Apple Music playback integration uses MusicKit and MediaPlayer frameworks to search the catalog, manage queues, and control audio directly within your iOS app using ApplicationMusicPlayer.

How do I show Now Playing metadata on the iOS lock screen?

Display Now Playing metadata on the iOS lock screen by updating MPNowPlayingInfoCenter with track details and responding to media controls via MPRemoteCommandCenter.

What entitlements do I need for MusicKit integration?

MusicKit integration requires the MusicKit entitlement, an NSAppleMusicUsageDescription privacy key, and background audio modes enabled for full playback and subscription functionality.

Can I manage Apple Music subscriptions within my SwiftUI app?

Manage Apple Music subscriptions within your SwiftUI app using MusicKit to facilitate subscription flows, verify user access, and enable catalog playback features.

How do I search the Apple Music catalog in SwiftUI?

Search the Apple Music catalog in SwiftUI using MusicKit APIs to query songs and artists, retrieve track metadata, and add items to the application playback queue.