From d4cffa28f2aed3c3d585cb8180f18a1a2208d9b6 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Wed, 6 May 2020 14:58:47 -0500 Subject: [PATCH] Rollback disclosure button reference hold since it does nothing to stop the crash --- iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift b/iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift index d06a33399..3fcf7506f 100644 --- a/iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift +++ b/iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift @@ -73,16 +73,13 @@ class MasterFeedTableViewSectionHeader: UITableViewHeaderFooterView { private let unreadCountView = MasterFeedUnreadCountView(frame: CGRect.zero) - @available(iOS 13.4, *) - private(set) lazy var disclosurePointerInteraction = UIPointerInteraction() - private lazy var disclosureButton: UIButton = { let button = NonIntrinsicButton() button.tintColor = UIColor.tertiaryLabel button.setImage(AppAssets.disclosureImage, for: .normal) button.contentMode = .center if #available(iOS 13.4, *) { - button.addInteraction(disclosurePointerInteraction) + button.addInteraction(UIPointerInteraction()) } button.addTarget(self, action: #selector(toggleDisclosure), for: .touchUpInside) return button