Skip to content

Commit

Permalink
[CHORE] KeywordCollectionViewHeader applied (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
seongmin221 committed Jan 1, 2024
1 parent 32a1fef commit e06fb4d
Showing 1 changed file with 36 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,39 @@
// Created by 이성민 on 12/31/23.
//

import Foundation
import UIKit

final class KeywordCollectionViewHeader: UICollectionReusableView {

// MARK: - property

private let label: UILabel = {
let label = UILabel()
label.font = .label2
label.textColor = .black100
return label
}()

// MARK: - init

override init(frame: CGRect) {
super.init(frame: .zero)
setupLayout()
}

required init?(coder: NSCoder) { nil }
// MARK: - setup

private func setupLayout() {
self.addSubview(label)
label.snp.makeConstraints {
$0.edges.equalToSuperview()
}
}
}

extension KeywordCollectionViewHeader {
func configureLabel(text: String) {
self.label.text = text
}
}

0 comments on commit e06fb4d

Please sign in to comment.