I am trying to execute this code in order to get all the music playlists that the users can have on their phones.
var queryPlaylists = MPMediaQuery.playlistsQuery()
print(queryPlaylists.collections[0])
However, when I try to access any of the elements of queryPlaylists.collections I get a compilation error:
Cannot subscript a value of type [MPMediaItem].
This does not make any sense to me since the above in an array. In addition this used to work before xcode 7.0.