Given an Apple Music trackId is it possible to query the user’s media library to see if they’ve added it to their library? Something like:
Code Block let predicate = MPMediaPropertyPredicate(value: "1440818675", forProperty: MPMediaItemPropertyPersistentID) let query = MPMediaQuery(filterPredicates: Set([predicate])) let songs = query.items let isInLibrary = !songs.isEmpty