zindex ignored for UICollectionViewCompositionalLayout supplementary items

Originator:mredig
Number:rdar://FB9021736 Date Originated:2/26/21
Status: Resolved:
Product:UIKit Product Version:iOS 14
Classification: Reproducible:
 
Zindex is ignore in UICollectionViewCompositionalLayout supplementary items in sections with an orthogonal value other than .none.

In the project, I’ve set the zIndex of the red `tlBadge` to 2, both on the layout item itself and again in the `visibleItemsInvalidationHandler` - neither of those are consistently effective at moving the item forward. Also, I’ve provided a commented out ‘fix’ for rendering the badge in `OtherBadges`, but it only fixes the rendering and NOT the hit test.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!