From 8aeb36e0ecbc06657aeb02d4627a41d7e65502bc Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Fri, 11 Nov 2022 21:26:06 -0600 Subject: [PATCH] Fix drop highlight state --- iOS/MasterFeed/Cell/MasterFeedTableViewCell.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iOS/MasterFeed/Cell/MasterFeedTableViewCell.swift b/iOS/MasterFeed/Cell/MasterFeedTableViewCell.swift index e144cab37..4b0004c1f 100644 --- a/iOS/MasterFeed/Cell/MasterFeedTableViewCell.swift +++ b/iOS/MasterFeed/Cell/MasterFeedTableViewCell.swift @@ -134,8 +134,11 @@ class MasterFeedTableViewCell : VibrantTableViewCell { } } - override func applyThemeProperties() { - super.applyThemeProperties() + override func updateConfiguration(using state: UICellConfigurationState) { + backgroundConfiguration = UIBackgroundConfiguration.listSidebarCell().updated(for: state) + if state.isSelected { + backgroundConfiguration?.backgroundColor = AppAssets.secondaryAccentColor + } } override func willTransition(to state: UITableViewCell.StateMask) {