iOS 16 MusicKit - Artwork has no background or text colors

Hello,

I'm new to the Swift MusicKit API and am starting with the implementation in iOS 16.

I'm getting stuck on an issue where there is no background or text color associated with the Artwork object. Is this something you have to make an additional property request for, and if so, how do you do that?

var catalogSearch = MusicCatalogResourceRequest<Album>(matching: \.id, equalTo: item.id)

let catalogResponse = try await request.response()

guard let firstItem = catalogResponse.items.first else {
    return
}

In this example, firstItem.artwork only contains the url and what look like incorrect max width/height values.

here's a printout of firstItem.artwork

Optional(Artwork(
  urlFormat: "musicKit://artwork/library/5F37858D-F46B-4F12-BA67-40FA8DD63D87/{w}x{h}?at=item&fat=&id=7718670444435992305&lid=5F37858D-F46B-4F12-BA67-40FA8DD63D87&mt=music&aat=Music122/v4/37/25/f5/3725f515-249f-7b91-77bb-f479cd48201c/22UMGIM32254.rgb.jpg",
  maximumWidth: 0,
  maximumHeight: 0
))

It's the same thing here in iOS 18, some Artwork provides colors, and some does not.

// log.debug("👀 album: \(album.title) \(album.releaseDate)"), album is instance of Album
//  log.debug("👀 artwork.backgroundColor: \(color.description)"), artwork is instance of Artwork
[🤖] 👀 album: Ms. Salazar Optional(2025-02-21 12:00:00 +0000)
[🤖] 👀 color is nil!
[🤖] 👀 album: Built Different Optional(2025-03-14 12:00:00 +0000)
[🤖] 👀 color is nil!
[🤖] 👀 album: More Leaks Optional(2025-03-07 12:00:00 +0000)
[🤖] 👀 color is nil!
[🤖] 👀 album: Caviar nil
[🤖] 👀 color is nil!
[🤖] 👀 album: Cruel Joke nil
[🤖] 👀 color is nil!
[🤖] 👀 album: Choses Sauvages III nil
[🤖] 👀 color is nil!
[🤖] 👀 album: After the Last Sky nil
[🤖] 👀 color is nil!
[🤖] 👀 album: Laini Tani nil
[🤖] 👀 color is nil!
[🤖] 👀 album: Horse Meat Disco Presents Disco & Boogie From Brazil, Vol. 1 nil
[🤖] 👀 color is nil!
[🤖] 👀 album: Even In Arcadia Optional(2025-03-13 12:00:00 +0000)
[🤖] 👀 color is nil!
[🤖] 👀 album: IC-02 Bogotá nil
[🤖] 👀 color is nil!
[🤖] 👀 album: Articulate Excuses Optional(2025-03-14 12:00:00 +0000)
[🤖] 👀 color is nil!
[🤖] 👀 album: SABLE, fABLE Optional(2025-03-14 07:00:00 +0000)
[🤖] 👀 color: UIExtendedSRGBColorSpace 0.941176 0.603922 0.521569 1
[🤖] 👀 album: THE NAVY ALBUM nil
[🤖] 👀 color: UIExtendedSRGBColorSpace 0 0.0352941 0.188235 1
[🤖] 👀 album: Plæygirl nil
[🤖] 👀 color is nil!

Do I need to do something to get the colors?

iOS 16 MusicKit - Artwork has no background or text colors
 
 
Q