Skip to content

Commit

Permalink
[Feat] CDS-Mobile1#27 - DMTableViewCellHeader 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
joonBaek12 committed Jun 1, 2023
1 parent c272606 commit a726470
Showing 1 changed file with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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)
}
}
}

0 comments on commit a726470

Please sign in to comment.