We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
`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)
} `
The text was updated successfully, but these errors were encountered:
Could you please elaborate on what the issue is (expected behavior, steps to reproduce, actual results)?
Sorry, something went wrong.
Any update on this issue?
No branches or pull requests
`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 {
}
`
The text was updated successfully, but these errors were encountered: