Skip to content

Commit

Permalink
💄#296: 마이페이지 - 좋아요 뷰 UI 변경
Browse files Browse the repository at this point in the history
- 좋아요 이미지 추가 및 컬러값 변경
- 백엔드 개발 반영 후 작업 예정
  • Loading branch information
thoonk committed Jul 29, 2024
1 parent 5e419a0 commit cf02e13
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ final class MusicListCell: UITableViewCell {
self.locationLabel.text = item.location
self.likeLabel.text = String(item.likeCount)
self.userNameLabel.text = item.userName
/*
TODO:
- 백엔드 개발 완료 후 내가 좋아요한 뮤직 노출 처리
*/
// likeIconImageView.tintColor = .primary400
// likeIconImageView.image = UIImage(named: "icon-heart-fill")?.withRenderingMode(.alwaysTemplate)

layoutIfNeeded()
}
Expand Down Expand Up @@ -136,15 +142,15 @@ final class MusicListCell: UITableViewCell {

private lazy var likeIconImageView: UIImageView = {
let imageView = UIImageView()
imageView.image = UIImage(named: "likeFillIcon")?.withRenderingMode(.alwaysTemplate)
imageView.tintColor = UIColor.darkPrimary_75
imageView.image = UIImage(named: "icon-heart-empty")?.withRenderingMode(.alwaysTemplate)
imageView.tintColor = .gray400
return imageView
}()

private lazy var likeLabel: UILabel = {
let label = UILabel()
label.text = "0"
label.textColor = UIColor.darkPrimary_75
label.textColor = .white
label.font = .pretendard(size: 12, weightName: .regular)
return label
}()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "icon-heart-empty.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "icon-heart-fill.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cf02e13

Please sign in to comment.