Skip to content

Commit 7496522

Browse files
committed
Merge pull request jessesquires#585 from dtsbourg/issue_492_scrollviewperformance
Rasterize collection view cell for scrolling performance, ref jessesquires#492
2 parents 71acc85 + 39393e4 commit 7496522

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

JSQMessagesViewController/Controllers/JSQMessagesViewController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,9 @@ - (UICollectionViewCell *)collectionView:(JSQMessagesCollectionView *)collection
468468

469469
cell.textView.dataDetectorTypes = UIDataDetectorTypeAll;
470470

471+
cell.layer.rasterizationScale = [UIScreen mainScreen].scale;
472+
cell.layer.shouldRasterize = YES;
473+
471474
return cell;
472475
}
473476

0 commit comments

Comments
 (0)