Since iOS 17 doesn't work bringSubviewToFront & sendSubviewToBack in CollectionView

We use CollectionView with UICollectionViewLayout. On willDisplay we send all cells to back, and move to front supplementaryView. It works well, until iOS 17. But now both of these methods doesn't work. Does anybody know why? And any other way to resolve this problem.

Accepted Reply

To alter a view's position on the z-axis in your collection view layout, specify a zIndex on the view’s layout attributes. View the documentation here.

Replies

To alter a view's position on the z-axis in your collection view layout, specify a zIndex on the view’s layout attributes. View the documentation here.