Skip to content

Commit

Permalink
Use AppIcon as an asset in the Now Playing widget (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamede1945 authored Sep 16, 2024
1 parent 3c05f49 commit 8d4758f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Core/QueuePlayer/PlayerItemInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ public struct PlayerItemInfo {
public init(title: String, artist: String, image: UIImage?) {
self.title = title
self.artist = artist
if let image {
artwork = MPMediaItemArtwork(boundsSize: image.size) { _ in image }
} else {
artwork = nil
artwork = (image ?? UIImage(named: "AppIcon")).map { image in
MPMediaItemArtwork(boundsSize: image.size) { _ in image }
}
}

Expand Down

0 comments on commit 8d4758f

Please sign in to comment.