So I want to show an image from a URL.
I know I would first need to make it friendly URL encoded -
.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)!
for example
if var strUrl = nowplaying.data.first?.track.imageurl {
strUrl = strUrl.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)!
}
However how then do I get it to put it into the MPMediaItemPropertyArtwork.
I have attempted many different things from using a 3rd part kingfisher plugin - but no success.
If someone could show me how to get the following image to show that would be great
http://covers.drn1.com.au/az_B101753_Wish You Were Here_Brain Purist.jpg