Apple has deprecated init(image:) method in MPMediaItemArtwork in iOS 10. What is the new alternative.
init(image:)
MPMediaItemArtwork
the class shows interface shows method
You can use the following code:
let image = UIImage(named: "logo")! let artwork = MPMediaItemArtwork.init(boundsSize: image.size, requestHandler: { (size) -> UIImage in return image })
And, yes, "now playing" metadata shows on the control center in the simulator.