Skip to content

Commit

Permalink
[Chore] CDS-Mobile1#27 - DMTableViewCellHeader에 마크주석 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
joonBaek12 committed Jun 2, 2023
1 parent d81272f commit 1974260
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -21,6 +24,8 @@ final class DMTableViewCellHeader: UITableViewHeaderFooterView {
return label
}()

// MARK: - Life Cycle

override init(reuseIdentifier: String?) {
super.init(reuseIdentifier: reuseIdentifier)

Expand All @@ -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)
Expand Down

0 comments on commit 1974260

Please sign in to comment.