I am using UICollectionView but following method not found:
func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: NSIndexPath) -> CGSize
please suggest me it's replacement.
For me sizeForItemAt
wasn't called because in Swift 3 you need to explicitly set your class to implement the UICollectionViewDelegateFlowLayout
protocol
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With