Change pointer interaction to encompass the complete button.

This commit is contained in:
Maurice Parker 2020-03-26 11:20:13 -05:00
parent 6c06c7791c
commit a13f10441f
2 changed files with 2 additions and 2 deletions

View File

@ -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!)
}

View File

@ -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