|
@@ -226,7 +226,6 @@ class SearchContentListCollectionCell: UICollectionViewCell {
|
|
|
var communityPostDataModel : CommunityPostDataModel? {
|
|
|
didSet {
|
|
|
contentImageView.kf.setImage(with: kURLThumbnailsImage(name: communityPostDataModel?.img ?? "",size: CGSize(width: self.size.width, height: (kScreenWidth-15)/2)), placeholder: kImage(name: "default_pic"))
|
|
|
- titleLabel.text = communityPostDataModel?.title
|
|
|
|
|
|
if communityPostDataModel?.title == "" || communityPostDataModel?.title == nil {
|
|
|
titleLabel.text = "\(communityPostDataModel?.content?.replacingOccurrences(of: "\n", with: "").replacingOccurrences(of: "\r", with: "").prefix(20) ?? "")"
|