From a13f10441f21f1c81e14df22f8fd20ecdf43c709 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Thu, 26 Mar 2020 11:20:13 -0500 Subject: [PATCH] Change pointer interaction to encompass the complete button. --- iOS/MasterFeed/Cell/MasterFeedTableViewCell.swift | 2 +- iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iOS/MasterFeed/Cell/MasterFeedTableViewCell.swift b/iOS/MasterFeed/Cell/MasterFeedTableViewCell.swift index 4e6e4513e..bf9d4652b 100644 --- a/iOS/MasterFeed/Cell/MasterFeedTableViewCell.swift +++ b/iOS/MasterFeed/Cell/MasterFeedTableViewCell.swift @@ -182,7 +182,7 @@ private extension MasterFeedTableViewCell { disclosureButton?.imageView?.contentMode = .center disclosureButton?.imageView?.clipsToBounds = false if #available(iOS 13.4, *) { - disclosureButton?.isPointerInteractionEnabled = true + disclosureButton?.addInteraction(UIPointerInteraction()) } addSubviewAtInit(disclosureButton!) } diff --git a/iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift b/iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift index 56082ab3c..9c081688c 100644 --- a/iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift +++ b/iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift @@ -78,7 +78,7 @@ class MasterFeedTableViewSectionHeader: UITableViewHeaderFooterView { button.setImage(AppAssets.disclosureImage, for: .normal) button.contentMode = .center if #available(iOS 13.4, *) { - button.isPointerInteractionEnabled = true + button.addInteraction(UIPointerInteraction()) } button.addTarget(self, action: #selector(toggleDisclosure), for: .touchUpInside) return button