Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Overlapping cells at bottom left corner

Tags:

ios

uikit

swift

I need bottom cell to be rounded shaped and overlap with above cell. I tried using corner radius and masked corners but it's not giving result. I have attached design, if anyone can help me out. Thanks

enter image description here

like image 733
Rahul singh Avatar asked Jun 01 '20 19:06

Rahul singh


1 Answers

Yes, it's possible.

Table view cell and it's contentView needs to be not clipping to bounds, and your imageView should be clipping to bounds, corner radius, border, etc.

You can create a view instead and do layer staff on it instead and place the image view inside.

Also table view will bring to front cell on select, so you need to disable selection and handle it by your own gesture recognizers, or reorder subviews back each time in layoutSubviews, check out my sample project

like image 78
Philip Dukhov Avatar answered Nov 06 '22 03:11

Philip Dukhov