title: How to get lyrics for Now Playing song in iOS10 (Swift 3)
body: <p>I want to display lyrics from song that is currently playing by iOS system player.</p>
  
  <p>Here is my custom player:</p>
  
  <pre><code>import UIKit
  import MediaPlayer
  import AVFoundation
  
  class NowPlayingController: NSObject {
      var musicPlayer: MPMusicPlayerController {
          if musicPlayer_Lazy == nil {
              musicPlayer_Lazy = MPMusicPlayerController.systemMusicPlayer()
  
              let center = NotificationCenter.default
              center.addObserver(self,
                  selector: #selector(self.playingItemDidChange),
                  name: NSNotification.Name.MPMusicPlayerControllerNowPlayingItemDidChange,
                  object: musicPlayer_Lazy)
              musicPlayer_Lazy!.beginGeneratingPlaybackNotifications()
          }
  
          return musicPlayer_Lazy!
      }
      private var musicPlayer_Lazy: MPMusicPlayerController?
  
      var nowPlaying: MPMediaItem?
  
      //If song changes
      func playingItemDidChange(notification: NSNotification) {
          nowPlaying = musicPlayer.nowPlayingItem
      }
  }
  </code></pre>
  
  <p>To get lyrics from <code>nowPlaying</code> item I've tried 2 approaches and both of them <strong>always</strong> return <code>nil</code>.</p>
  
  <p>This code always returns nil:</p>
  
  <pre><code>let lyricsText = nowPlaying?.value(forProperty: MPMediaItemPropertyLyrics) as? NSString as String?
  </code></pre>
  
  <p>In following code <code>MPMediaItemPropertyAssetURL</code> always returns <code>nil</code> instead of actual URL:</p>
  
  <pre><code>let songUrl = nowPlaying?.value(forProperty: MPMediaItemPropertyAssetURL) as? NSURL as URL?
  if songUrl != nil {
      let songAsset = AVURLAsset(url: songUrl!, options: nil)
      lyricsText = songAsset.lyrics
  </code></pre>
  
  <blockquote>
    <p>All songs are on device (synced by iTunes), contain lyrics (displayed in system player) and non DRM-protected
    (ripped aac/mp3).</p>
  </blockquote>
  
  <p>I'm testing this on real device: iPhone 6s/iOS 10.3</p>
  
  <p>Any suggestions how I can get lyrics or why MPMediaItemPropertyAssetURL returns nil?</p>