[iOS] fix expandable label bg color (especially in night mode)

This commit is contained in:
Aleksey Belousov 2020-06-16 18:10:55 +03:00 committed by Vladimir Byko-Ianko
parent 1ef8e96a66
commit c996986282

View file

@ -102,6 +102,7 @@ final class ExpandableLabel: UIView {
textView.text = text
textView.attributedText = attributedText
textView.setContentHuggingPriority(contentHuggingPriority(for: .vertical), for: .vertical)
textView.backgroundColor = .clear
expandLabel.setContentHuggingPriority(contentHuggingPriority(for: .vertical), for: .vertical)
expandLabel.font = font
expandLabel.textColor = expandColor