Skip to content

Commit 79bb96e

Browse files
committed
[#198] ReactionView 제작
1 parent 6841ddc commit 79bb96e

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

EATSSU/App/Sources/Presentation/Review/MainReviewView/Component/ReactionView.swift

+44-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,47 @@
55
// Created by 최지우 on 2/11/25.
66
//
77

8-
import Foundation
8+
import UIKit
9+
10+
import EATSSUDesign
11+
import SnapKit
12+
13+
final class ReactionView: BaseUIView {
14+
15+
// MARK: - UI Components
16+
17+
private let unlikeImageView: UIImageView = {
18+
let imageView = UIImageView(image: EATSSUDesignAsset.Images.like.image)
19+
imageView.contentMode = .scaleAspectFit
20+
return imageView
21+
}()
22+
23+
private let likeCountLabel: UILabel = {
24+
let label = UILabel()
25+
label.text = "3"
26+
label.font = EATSSUDesignFontFamily.Pretendard.medium.font(size: 12)
27+
return label
28+
}()
29+
30+
lazy var stackView: UIStackView = {
31+
let stackView = UIStackView(arrangedSubviews: [unlikeImageView, likeCountLabel])
32+
stackView.axis = .horizontal
33+
stackView.spacing = 3
34+
return stackView
35+
}()
36+
37+
// MARK: - Functions
38+
39+
override func configureUI() {
40+
addSubview(stackView)
41+
}
42+
43+
override func setLayout() {
44+
stackView.snp.makeConstraints { make in
45+
make.height.equalTo(20)
46+
}
47+
unlikeImageView.snp.makeConstraints { make in
48+
make.width.height.equalTo(12)
49+
}
50+
}
51+
}

0 commit comments

Comments
 (0)