Skip to content

Commit e1b3fb1

Browse files
committed
fix(ios): allow overlap
1 parent 93909cf commit e1b3fb1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/collectionview/index.ios.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,10 @@ export class CollectionView extends CollectionViewBase {
908908
if (!cell) {
909909
cell = CollectionViewCell.new() as CollectionViewCell;
910910
}
911+
// should we force clipsToBounds? not doing so allows more complex layouts like overlapping
912+
// cell.clipsToBounds = true;
913+
// we set zPosition to allow overlap. Should we make it an option?
914+
cell.layer.zPosition = indexPath.row;
911915
const firstRender = !cell.view;
912916
if (Trace.isEnabled()) {
913917
CLog(CLogTypes.log, 'collectionViewCellForItemAtIndexPath', indexPath.row, templateType, !!cell.view, cell);

0 commit comments

Comments
 (0)