chiahsien / CHTCollectionViewWaterfallLayout

The waterfall (i.e., Pinterest-like) layout for UICollectionView.
MIT License
4.52k stars 699 forks source link

Ambiguous inference of Objective-C name for instance method #206

Open naveedmcs opened 2 years ago

naveedmcs commented 2 years ago

`extension BlogPostVC: CHTCollectionViewDelegateWaterfallLayout {

func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { let width = (self.collectionView!.frame.width / 2 ) - 5 // create a cell size from the image size, and return the size if appStorage.userData?.userType == .admin && indexPath.row == 0 {

        return CGSize(width: width, height: 130)
    }
    else {

        return CGSize(width: width, height: 300) //blogs[indexPath.item].imageHeightFormatted
    }
}

//MARK: - CollectionView Waterfall Layout Delegate Methods (Required)

} `

ApolloZhu commented 2 years ago

Could you please elaborate on what the issue is (expected behavior, steps to reproduce, actual results)?

aligermiyanoglu commented 11 months ago

Any update on this issue?