Releases: rryam/MusadoraKit
Version 1.9.3
Added more functionality to createPlaylist.
Usage for adding any music item, whether it is a song, library song, music video, or a library music video.
let librarySong = try await MusadoraKit.librarySong(id: "i.zpZeAOdFmZ0kMQo")
let musicVideo = try await MusadoraKit.catalogMusicVideo(id: "1444338558")
let song = try await MusadoraKit.catalogSong(id: "956135760")
let playlist = try await MusadoraKit.createPlaylist(name: "TESTING ANY ITEMS", items: [song, librarySong, musicVideo])
Usage for adding a collection of tracks as MusicItemCollection<Track>
.
var album = try await MusadoraKit.catalogAlbum(id: "1363309866").with(.tracks)
var playlist = try await MusadoraKit.createPlaylist(name: "TESTING SEQUENCE", items: album.tracks!)
Enjoy!
Version 1.9.2
Make the package type automatic
Version 1.9.1
Added option to create playlist with songs for iOS 15.
Usage:
let song = try await MusadoraKit.catalogSong(id: "1651994123")
let playlist = try await MusadoraKit.createPlaylist(name: "TESTING SONGS", items: .init(arrayLiteral: song))
Version 1.9.0
Add LibraryPlaylist
and libraryPlaylists()
method.
You can now directly fetch ALL playlists of a user in a single line:
let playlists = try await MusadoraKit.libraryPlaylists()
This method fetches the playlists from the user library. It is helpful when you are targeting iOS 15, and cannot use MusicLibraryRequest
introduced in iOS 16, yet.
Version 1.8.1
Add more support for iOS 16+ methods
Version 1.8.0
Add more methods for working with MusicKit easier and with fewer lines of code.
Full Changelog: v1.7.2...v1.8.0
Version 1.7.2
Add recommendationAlbums and recommendationPlaylists
Version 1.7.1
Add recentlyPlayedAlbums and recentlyPlayedPlaylists
Version 1.7.0
Added methods for easily accessing all additional properties of a music item.
For example,
let song = try await MusadoraKit.catalogSong(id: id)
will also fetch the additional properties - [.albums, .artists, .composers, .genres, .musicVideos, .artistURL, .station, .audioVariants]
.
This way, you do not have to make two network calls. However, note that this is slower than fetching just the basic properties of a Song
.
Make sure you are using the method where there is no with
parameter.
Version 1.6.1
New in this version:
- Remove
includeTopResults
as it is not annotated with @available(iOS 16) in the latest Xcode 14 beta.