Closed williamkey123 closed 2 years ago
Also... why are these items disclosure indicators in the first place? Disclosure indicators should be used to indicate an action that will push a new item onto a navigation stack, not present a view modally. This should be an info button.
You've found the right spot, there is no current way to set showsDetailDisclosure
. You can hide it by accessing the image directly:
headerView.detailDisclosureImage?.isHidden = true
@williamkey123 you can access that same property to change it to an info button if needed.
detailDisclosureImage?.image = someNewImage
Awesome, thanks @grawson !
I'm subclassing
OCKGridTaskViewController
and I don't want there to be any detail view. I've followed @gavirawson-apple 's recommendation in issue 401 to override the detail behavior, and that works great. But the problem is that there is still a detail disclosure arrow on the header.Tantalizingly,
OCKHeaderView
has a property forshowsDetailDisclosure
, but it's alet
constant and I can't find a way to edit this. It seems like this functionality should be easily customizable... any advice?