[Solved] Editor placeholder in source file swift [duplicate]


You need to write it like this:

func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
    let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "MenuCollectionViewCell", for: indexPath) as! MenuCollectionViewCell
    return cell
}

3

solved Editor placeholder in source file swift [duplicate]