LogoAwesome Skills
  • Search
  • Category
  • Tag
  • Blog
LogoAwesome Skills
LogoAwesome Skills

Discover Open-Source Agent Skills for AI Coding Assistants

Product

  • Search
  • Category
  • Tag
  • Blog

Resources

  • Claude Skill Docs
  • Antigravity Skills Docs

Tools

  • Claude Code
  • OpenCode
  • Cursor
  • Codex
  • Antigravity

Company

  • Privacy Policy
  • Terms of Service
  • Sitemap

©2026 Awesome Skills. All rights reserved.

Privacy PolicyTerms
Back to Skills

musickit

Integrate Apple Music playback, catalog search, and Now Playing metadata using MusicKit and MediaPlayer. Use when adding music search, Apple Music subscription flows, queue management, playback controls, remote command handling, or Now Playing info to iOS apps.

841stars43forksUpdated 7/7/2026
Developer Tools#ios#apple-music#swift#media-playback#audio

Security Assessment

Safe(100/100)
Security Score100/100

About musickit

Integrate Apple Music into an iOS app — catalog search, playback, subscription checks, and Now Playing metadata — using the MusicKit and MediaPlayer frameworks, targeting Swift 6.3 and iOS 26+. It applies when adding music search, Apple Music subscription flows, queue management, playback controls, remote command handling, or Lock Screen and Control Center metadata.

Setup covers enabling the MusicKit App Service for the app's bundle ID so developer tokens are generated automatically, adding NSAppleMusicUsageDescription to Info.plist, and declaring the audio background mode for background playback. Access begins with authorization through MusicAuthorization.request(), with currentStatus available to read the setting without prompting. Catalog search uses MusicCatalogSearchRequest with a term and result types, and the guidance is explicit that playback of subscription catalog content must still be gated on MusicSubscription.current.canPlayCatalogContent — checked directly, observed via subscriptionUpdates, and paired with the musicSubscriptionOffer sheet (guarded by canBecomeSubscriber) to prompt non-subscribers.

Playback runs through ApplicationMusicPlayer.shared, which plays Apple Music content independently of the system Music app and exposes an observable state with playbackStatus. Queue management builds and mutates ApplicationMusicPlayer.Queue — assigning songs or albums, appending at the tail, or inserting after the current entry to play next. For custom (non-MusicKit) audio the document shows populating MPNowPlayingInfoCenter with title, artist, duration, elapsed time, playback rate, and artwork so the Lock Screen, Control Center, and CarPlay display track info, noting that ApplicationMusicPlayer handles this automatically for Apple Music content. Finally it registers MPRemoteCommandCenter handlers for play, pause, next, and previous — responding to Lock Screen, AirPods, and CarPlay controls — and disables unsupported commands. Common mistakes and a review checklist round out the material.

FAQ

What project configuration is required?

Enable the MusicKit App Service for the app's bundle ID, add NSAppleMusicUsageDescription to Info.plist, and add the audio background mode for background playback.

How do you check for an Apple Music subscription?

Read MusicSubscription.current.canPlayCatalogContent (or observe subscriptionUpdates); subscription catalog playback must be gated on this, and the musicSubscriptionOffer sheet can prompt non-subscribers.

Which player is used for playback?

ApplicationMusicPlayer.shared, which plays Apple Music content independently of the system Music app and exposes an observable state with playbackStatus.

How do you manage the playback queue?

Through ApplicationMusicPlayer.Queue — assign songs or albums, append items at the tail, or insert a song after the current entry to play it next.

When do I need to set Now Playing info manually?

For custom, non-MusicKit audio you populate MPNowPlayingInfoCenter yourself; ApplicationMusicPlayer handles Now Playing automatically for Apple Music content.

All Files

3 files
evals/evals.json3.8 KB
View
references/musickit-patterns.md10.3 KB
View
SKILL.md13.2 KB
View

Install musickit

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

dpearson2699/swift-ios-skills

Related Skills

import-on-interaction

256

radon-mcp

296

investigating-incidents-with-aws-devops-agent

2,945

mantis-structural-index

2,518