Version 2.3.0
New in Version 2.3.0
Added the new chart and global playlists that Apple Music API added in version 1.2!
Example usage:
Fetch the charting playlists from the Apple Music catalog for the particular storefront. In the following example, the method fetches the charting playlists in India:
let playlists = try await MCatalog.chartPlaylists(storefront: "IN")
If no storefront
is provided, the method retrieves the charting playlists for the current user's storefront.
let playlists = try await MCatalog.chartPlaylists()
Fetch all the charting playlists from the Apple Music catalog for all the storefronts. In the following example, the method fetches the charting playlists globally:
let playlists = try await MCatalog.globalChartPlaylists()