I downloaded your project but it didn't work cause of the podfiles.
This is my code for UserProfilePhotoCell i am not sure where the error is:
import UIKit
class UserProfilePhotoCell: UICollectionViewCell {
var post: Post? {
didSet {
print(post?.imageUrl ?? "")
}
}
lazy var photoImageView: UIImageView = {
let iv = UIImageView()
iv.backgroundColor = .red
iv.contentMode = .scaleAspectFill
iv.clipsToBounds = true
return iv
}()
override init(frame: CGRect) {
super.init(frame: frame)
addSubview(photoImageView)
photoImageView.anchor(top: topAnchor, left: leftAnchor, bottom: bottomAnchor, right: rightAnchor, paddingTop: 0, paddingLeft: 0, paddingBottom: 0, paddingRight: 0, width: 0, height: 0)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}