Skip to content
New issue

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

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

Open
naveedmcs opened this issue Dec 2, 2021 · 2 comments
Open

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

naveedmcs opened this issue Dec 2, 2021 · 2 comments

Comments

@naveedmcs
Copy link

`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
Copy link
Contributor

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

@aligermiyanoglu
Copy link

Any update on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants