Hey All,
I tried modifying the code a bit, it doesn't work and I can't figure out why:
Instead of accessing MPNowPlayingInfoCenter.default().nowPlayingInfo each time, I added this var:
var nowPlayingInfo = [String: Any](){
didSet{
MPNowPlayingInfoCenter.default().nowPlayingInfo? = nowPlayingInfo
}
}
and in the setup I added :
nowPlayingInfo[MPMediaItemPropertyArtist] = episode.author
nowPlayingInfo[MPMediaItemPropertyTitle] = episode.title
it only shows the first value I insert like that, if I change the order, it saves the other, however, the didSet block is being accessed twice. what did I miss?