1234567891011121314151617181920212223242526272829 |
- //
- // SetMealCollectionItem.swift
- // ADHTuanCan
- //
- // Created by 敖德亨 on 2023/10/26.
- //
- import UIKit
- class SetMealCollectionItem: UICollectionViewCell {
- @IBOutlet weak var selectImg: UIImageView!
-
- @IBOutlet weak var foodImg: UIImageView!
-
- @IBOutlet weak var nameLab: UILabel!
- override func awakeFromNib() {
- super.awakeFromNib()
-
- }
- func configData(model : MealFoodMsgModel){
- self.foodImg.sd_setImage(url: URL.init(string: model.link ?? "") ,placeHolderImage: UIImage.init(named: "placeHolderImage"))
- self.nameLab.text = model.name
-
- self.selectImg.isHidden = !model.selected
- }
-
- }
|