Skip to content

Commit d970431

Browse files
committed
[BOOK-358] feat: 스캔된 문장 컬러 유지 및 폰트 변경 적용
1 parent 0706a96 commit d970431

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/Projects/BKPresentation/Sources/MainFlow/Note/View/SentenceListCell.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,22 @@ final class SentenceListCell: UICollectionViewCell {
5353
// MARK: - Configuration
5454
func configure(with sentence: RecognizedTextViewModel.SentenceItem) {
5555
sentenceLabel.setText(text: sentence.text)
56-
updateSelectionState(isSelected: sentence.isSelected)
56+
sentenceLabel.setColor(color: .bkContentColor(.primary))
57+
UIView.animate(withDuration: 0.2) { [weak self] in
58+
self?.updateSelectionState(isSelected: sentence.isSelected)
59+
}
5760
}
5861

5962
private func updateSelectionState(isSelected: Bool) {
6063
if isSelected {
64+
sentenceLabel.setFontStyle(style: .body1(weight: .medium))
6165
contentView.backgroundColor = .bkBackgroundColor(.tertiary)
6266
contentView.layer.borderWidth = 1
6367
contentView.layer.borderColor = UIColor.bkBorderColor(.brand).cgColor
64-
sentenceLabel.setColor(color: .bkContentColor(.brand))
6568
} else {
69+
sentenceLabel.setFontStyle(style: .body1(weight: .regular))
6670
contentView.backgroundColor = .bkBackgroundColor(.secondary)
6771
contentView.layer.borderColor = UIColor.clear.cgColor
68-
sentenceLabel.setColor(color: .bkContentColor(.primary))
6972
}
7073

7174
UIView.animate(withDuration: 0.2) {

0 commit comments

Comments
 (0)