Change pointer interaction to encompass the complete button.
This commit is contained in:
parent
6c06c7791c
commit
a13f10441f
|
@ -182,7 +182,7 @@ private extension MasterFeedTableViewCell {
|
||||||
disclosureButton?.imageView?.contentMode = .center
|
disclosureButton?.imageView?.contentMode = .center
|
||||||
disclosureButton?.imageView?.clipsToBounds = false
|
disclosureButton?.imageView?.clipsToBounds = false
|
||||||
if #available(iOS 13.4, *) {
|
if #available(iOS 13.4, *) {
|
||||||
disclosureButton?.isPointerInteractionEnabled = true
|
disclosureButton?.addInteraction(UIPointerInteraction())
|
||||||
}
|
}
|
||||||
addSubviewAtInit(disclosureButton!)
|
addSubviewAtInit(disclosureButton!)
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,7 @@ class MasterFeedTableViewSectionHeader: UITableViewHeaderFooterView {
|
||||||
button.setImage(AppAssets.disclosureImage, for: .normal)
|
button.setImage(AppAssets.disclosureImage, for: .normal)
|
||||||
button.contentMode = .center
|
button.contentMode = .center
|
||||||
if #available(iOS 13.4, *) {
|
if #available(iOS 13.4, *) {
|
||||||
button.isPointerInteractionEnabled = true
|
button.addInteraction(UIPointerInteraction())
|
||||||
}
|
}
|
||||||
button.addTarget(self, action: #selector(toggleDisclosure), for: .touchUpInside)
|
button.addTarget(self, action: #selector(toggleDisclosure), for: .touchUpInside)
|
||||||
return button
|
return button
|
||||||
|
|
Loading…
Reference in New Issue