Skip to content

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

Open
@naveedmcs

Description

@naveedmcs

`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)

}
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions