Swinflate icon indicating copy to clipboard operation
Swinflate copied to clipboard

iOS 13 IndexPath

Open pauloec opened this issue 5 years ago • 0 comments

Looks like on iOS 13 if you're using indexPathForItem(at: point) the layout can't find the proper indexPath.

let midX:CGFloat = strongSelf.organizationCollectionView.bounds.midX
let midY:CGFloat = strongSelf.organizationCollectionView.bounds.midY
let point:CGPoint = CGPoint(x:midX, y:midY)
                    
guard let indexPath: IndexPath = strongSelf.organizationCollectionView.indexPathForItem(at:point) else { return }

This returns fine on iOS 12, but got broken on 13

pauloec avatar Sep 30 '19 08:09 pauloec