Shows app’s source icon on AppBannerView

Excluding contexts where it is redundant (e.g. source detail page).
This commit is contained in:
Riley Testut
2023-12-07 18:19:42 -06:00
committed by Magesh K
parent 20b424c97c
commit 5c808ec59e
5 changed files with 68 additions and 18 deletions

View File

@@ -285,7 +285,7 @@ private extension AppCardCollectionViewCell
extension AppCardCollectionViewCell
{
func configure(for storeApp: StoreApp)
func configure(for storeApp: StoreApp, showSourceIcon: Bool = true)
{
self.screenshots = storeApp.preferredScreenshots()
@@ -294,7 +294,7 @@ extension AppCardCollectionViewCell
self.bannerView.button.isIndicatingActivity = false
self.bannerView.tintColor = storeApp.tintColor
self.bannerView.configure(for: storeApp)
self.bannerView.configure(for: storeApp, showSourceIcon: showSourceIcon)
self.bannerView.subtitleLabel.numberOfLines = 1
self.bannerView.subtitleLabel.lineBreakMode = .byTruncatingTail