Skip to content

Latest commit

 

History

History
337 lines (326 loc) · 42.8 KB

MusicKit.md

File metadata and controls

337 lines (326 loc) · 42.8 KB

MusicKit

Symbols: 51.1% of Apple's iOS API (470 of 919, exact) · Rows: 9: 6 ✅ 3 ❌ · iOS: 15.0+

Area: Media · Apple: MusicKit · Issues: area:media

How isim implements it

  • Adapted: the library is shared with MediaPlayer's simulated library. Catalog requests pass through to the Apple Music API with the developer's token; catalog songs do not play (DRM). Rows: MediaPlayer.

API

API / feature Status iOS Notes
Catalog items Genre, MusicVideo, Station, RecordLabel (with ContentRating, EditorialNotes, PreviewAsset, the …Filter protocols); catalog search for them ✅ ≤17 passthrough: decoded from the Apple Music API with the developer token (ISIM_MUSICKIT_DEVELOPER_TOKEN); library genres come from the simulated library; isim's library has no music videos; adapted: an item's FilterType is the item itself, which conforms to Apple's filter protocol. Tested (HelloMusic -musickit: test_musickit.py)
with(_:) relationships and views ✅ ≤17 passthrough: catalog items are fetched again with include= (relationships: albums, artists, genres, music videos, station, tracks, record labels) and views= (latest / top releases, more by artist, more in genre); library items already carry theirs. Tested (HelloMusic)
MusicCatalogChartsRequest, MusicCatalogChart, MusicCatalogChartKind ✅ ≤17 passthrough: the Apple Music API's charts (songs, albums, playlists, music videos; genre, limit, offset). Tested (HelloMusic)
MusicRecentlyPlayedRequest, RecentlyPlayedMusicItem, MusicPersonalRecommendationsRequest ✅ ≤17 passthrough to /v1/me/…: needs the music user token too (ISIM_MUSICKIT_USER_TOKEN; isim has no Apple ID), else MusicTokenRequestError.userTokenRequestFailed. Tested (HelloMusic, with and without the token)
MusicLibrarySearchRequest ✅ ≤17 adapted: searches the simulated library (every word must match; matches at the start of the title rank first), with top results. Tested (HelloMusic)
ArtworkImage, MusicSubscriptionOffer, View.musicSubscriptionOffer(isPresented:options:onLoadCompletion:) ✅ ≤17 adapted: ArtworkImage loads the artwork file or URL at its size; the offer is isim's own sheet saying that there is no Apple Music subscription to offer (catalog playback stays blocked: DRM). Tested (HelloMusic: the sheet and onLoadCompletion)
Types not yet in isim (iOS 17 and earlier) ❌ ≤17 not implemented, found by the 2026-10 sweep: AlbumFilter, AnyMusicProperty, ArtistFilter, AudioVariant, Curator, CuratorFilter, DefaultMusicTokenProvider, LibraryAlbumFilter, LibraryAlbumSortProperties, LibraryArtistFilter, LibraryArtistSortProperties, LibraryGenreFilter, LibraryGenreSortProperties, LibraryMusicVideoFilter, LibraryMusicVideoSortProperties, LibraryPlaylistEntryFilter, LibraryPlaylistEntrySortProperties, LibraryPlaylistFilter, LibraryPlaylistSortProperties, LibrarySongFilter, LibrarySongSortProperties, LibraryTrackFilter, LibraryTrackSortProperties, MusicAttributeProperty, MusicCatalogSearchSuggestionsRequest, MusicCatalogSearchSuggestionsResponse, MusicCatalogTopLevelResourceRequesting, MusicDeveloperTokenProvider, MusicExtendedAttributeProperty, MusicLibraryAddable, MusicLibraryRequestFilterValueEquatable, MusicLibraryRequestFilterValueMembershipComparable, MusicLibrarySection, MusicLibrarySectionedRequest, MusicLibrarySectionedResponse, MusicLibrarySectionRequestable, MusicPlaylistAddable, MusicPropertySource, MusicRelationshipProperty, MusicTokenProvider, MusicTokenRequestOptions, MusicUserTokenProvider, PartialMusicAsyncProperty, PlaylistFilter, RadioShow, RadioShowFilter, SongFilter, TitledSection (48 types; with their members under "Not yet in isim")
Types not yet in isim (iOS 26) ❌ 26.4 not implemented, found by the 2026-10 sweep: MusicCatalogResourceRequestOption (1 type; with its members under "Not yet in isim")
Types not yet in isim (iOS 27) ❌ 27.0 not implemented, found by the 2026-10 sweep: PickableMusicItem (1 type; with its members under "Not yet in isim")

Not yet in isim

449 symbols Apple documents for iOS that isim does not have (exact; Apple snapshot 2026-10-14). Each links to Apple's documentation.

List