title: Retrieve playlists' name from music app iOS swift
body: <p>I'm trying to retrieve user's playlists' name from Music app in swift.</p>
  
  <p>I trying this way </p>
  
  <pre><code>let myMediaQuery = MPMediaQuery.playlists().collections
  </code></pre>
  
  <p>Though <a href="https://stackoverflow.com/questions/14052893/how-to-retrieve-playlist-from-ipod-library-in-ios">How to retrieve Playlist from iPod Library in iOS?</a> seems like have an answer, it doesn't work in Swift</p>