-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBitnagilChevronTableViewCell.swift
More file actions
47 lines (37 loc) · 1.29 KB
/
BitnagilChevronTableViewCell.swift
File metadata and controls
47 lines (37 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// BitnagilChevronTableViewCell.swift
// Presentation
//
// Created by 이동현 on 7/30/25.
//
import SnapKit
import UIKit
final class BitnagilChevronTableViewCell: BitnagilBaseTableViewCell {
private enum Layout {
static let chevronImageViewTrailingSpacing: CGFloat = 16
static let chevronImageViewSize: CGFloat = 16
}
private let chevronImageView = UIImageView()
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func configureAttribute() {
super.configureAttribute()
chevronImageView.tintColor = .black
chevronImageView.image = BitnagilIcon
.chevronIcon(direction: .right)?
.withRenderingMode(.alwaysTemplate)
}
override func configureLayout() {
super.configureLayout()
contentView.addSubview(chevronImageView)
chevronImageView.snp.makeConstraints { make in
make.centerY.equalToSuperview()
make.trailing.equalToSuperview().inset(Layout.chevronImageViewTrailingSpacing)
make.size.equalTo(Layout.chevronImageViewSize)
}
}
}