UITableviewCell layer.zposition not working in iOS13. It was working previously. How to handle overlapping of cells?

I want to overlap one cell over the other. I was setting layer.zposition for UITableviewCell and it was working fine.

But in iOS 13 zposition is not having any effect even thought I can see it while debugging UI.


What should be done for overlapping cells in iOS13?


Thanks in advance!

Replies

Adding below line of code solved the issue. It was not required for OS < iOS13.


contentView.clipsToBounds = false