mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Change pointer interaction to encompass the complete button.
This commit is contained in:
@@ -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!)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user