rryam / MusadoraKit

The ultimate companion to MusicKit.
http://exploringmusickit.com
MIT License
344 stars 22 forks source link

Get count of library items #7

Closed aeip closed 2 years ago

aeip commented 2 years ago

It would be nice to have a method to get a count of library items users have. For example, a count of total songs someone has in their library, a count of total number of playlists, etc.

rudrankriyam commented 2 years ago

I just added count for songs, playlists, albums and artists. Can you check and let me know if it works?

Usage:

let songsCount = try await MusadoraKit.librarySongsCount