File tree Expand file tree Collapse file tree 1 file changed +44
-1
lines changed
EATSSU/App/Sources/Presentation/Review/MainReviewView/Component Expand file tree Collapse file tree 1 file changed +44
-1
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments