diff --git a/Instagram-iOS/Instagram-iOS/Screens/DMList/Cell/DMTableViewCellHeader.swift b/Instagram-iOS/Instagram-iOS/Screens/DMList/Cell/DMTableViewCellHeader.swift new file mode 100644 index 0000000..34a879d --- /dev/null +++ b/Instagram-iOS/Instagram-iOS/Screens/DMList/Cell/DMTableViewCellHeader.swift @@ -0,0 +1,43 @@ +// +// DMTableViewCellHeader.swift +// Instagram-iOS +// +// Created by Joon Baek on 2023/05/29. +// + +import UIKit + +import SnapKit + +final class DMTableViewCellHeader: UITableViewHeaderFooterView { + + static let identifier = "DMTableViewCellHeader" + + private let sectionLabel: UILabel = { + let label = UILabel() + label.font = .bodyKorBold + label.textColor = .black1 + label.text = "메시지" + return label + }() + + override init(reuseIdentifier: String?) { + super.init(reuseIdentifier: reuseIdentifier) + + setLayout() + } + + required init?(coder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + + private func setLayout() { + + addSubview(sectionLabel) + + sectionLabel.snp.makeConstraints { + $0.leading.equalToSuperview().offset(16) + $0.bottom.equalToSuperview().offset(-8) + } + } +}