File tree Expand file tree Collapse file tree
src/Projects/BKPresentation/Sources/MainFlow/Note/View Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments