Model : iPhone 12 pro max
System : iOS 15 beta4
Desc : I set the collectionView to scroll to the back of the item, but it actually scrolls to the front. The problem is currently only in iPhone 12pro max.
NSInteger row = indexPath.item + 1;
if (row > 0 && row < [self.dataSource collectionView:self numberOfItemsInSection:indexPath.section]) {
[UIView animateWithDuration:.3 animations:^{
[self scrollToItemAtIndexPath:[NSIndexPath indexPathForRow:row inSection:indexPath.section] atScrollPosition:UICollectionViewScrollPositionNone animated:NO];
}];
}