From e06fb4d34e6f329066e0b243aa4c593872f75758 Mon Sep 17 00:00:00 2001 From: seongmin221 Date: Mon, 1 Jan 2024 15:31:30 +0900 Subject: [PATCH] [CHORE] KeywordCollectionViewHeader applied (#403) --- .../View/KeywordCollectionViewHeader.swift | 37 ++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/Maddori.Apple/Maddori.Apple/Presentation/Screen/InProgress/View/KeywordCollectionViewHeader.swift b/Maddori.Apple/Maddori.Apple/Presentation/Screen/InProgress/View/KeywordCollectionViewHeader.swift index 5e89f171..efa47614 100644 --- a/Maddori.Apple/Maddori.Apple/Presentation/Screen/InProgress/View/KeywordCollectionViewHeader.swift +++ b/Maddori.Apple/Maddori.Apple/Presentation/Screen/InProgress/View/KeywordCollectionViewHeader.swift @@ -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 + } +}