artistImageView.snp.makeConstraints {
$0.size.equalTo(100)
$0.top.directionalHorizontalEdges.width.equalToSuperview()
}
artistNameLabel.snp.makeConstraints {
$0.top.equalTo(artistImageView.snp.bottom).offset(5)
$0.directionalHorizontalEdges.bottom.equalToSuperview()
}
이 부분에 대한 정보를 다루는 레퍼런스를 알고싶은데 찾지못함
extension FeaturedSubscribeArtistCell {
func configureUI(with model: FeaturedSubscribeArtistCellModel) {
artistImageView.kf.setImage(with: model.artistImageURL)
artistNameLabel.setAttributedText(font: ENFont.self, string: model.artistName)
artistNameLabel.lineBreakMode = .byTruncatingTail
}
}