From 1974260e382c86345abb02f2815377bb459d6205 Mon Sep 17 00:00:00 2001 From: Joon Baek Date: Sat, 3 Jun 2023 01:29:18 +0900 Subject: [PATCH] =?UTF-8?q?[Chore]=20#27=20-=20DMTableViewCellHeader?= =?UTF-8?q?=EC=97=90=20=EB=A7=88=ED=81=AC=EC=A3=BC=EC=84=9D=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Screens/DMList/Cell/DMTableViewCellHeader.swift | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Instagram-iOS/Instagram-iOS/Screens/DMList/Cell/DMTableViewCellHeader.swift b/Instagram-iOS/Instagram-iOS/Screens/DMList/Cell/DMTableViewCellHeader.swift index 34a879d..de43e9f 100644 --- a/Instagram-iOS/Instagram-iOS/Screens/DMList/Cell/DMTableViewCellHeader.swift +++ b/Instagram-iOS/Instagram-iOS/Screens/DMList/Cell/DMTableViewCellHeader.swift @@ -10,8 +10,11 @@ import UIKit import SnapKit final class DMTableViewCellHeader: UITableViewHeaderFooterView { - + // MARK: - Property + static let identifier = "DMTableViewCellHeader" + + // MARK: - UI Property private let sectionLabel: UILabel = { let label = UILabel() @@ -21,6 +24,8 @@ final class DMTableViewCellHeader: UITableViewHeaderFooterView { return label }() + // MARK: - Life Cycle + override init(reuseIdentifier: String?) { super.init(reuseIdentifier: reuseIdentifier) @@ -31,10 +36,11 @@ final class DMTableViewCellHeader: UITableViewHeaderFooterView { fatalError("init(coder:) has not been implemented") } + // MARK: - Layout + private func setLayout() { addSubview(sectionLabel) - sectionLabel.snp.makeConstraints { $0.leading.equalToSuperview().offset(16) $0.bottom.equalToSuperview().offset(-8)