Hi! I trying to configure a UICollectionView with compositional layout but I´ve found a problem. I added a badge view to the cells but it appears behind the cell. It happens only when I set section´s .orthogonalScrollingBehavior to any value but .none. I tried to set badge´s zIndex property to higher but it wouldn't work. Setting badge´s layer.zPosition to higher, kind of fixed the issue but in the in DebugViewHierarchy it still appears behind the cell and if the badge contains a button you can't press it.
I would appreciate any help.
Thanks in advance!