diff --git a/VDS/Components/Label/Label.swift b/VDS/Components/Label/Label.swift index fd77dc7e..955d9604 100644 --- a/VDS/Components/Label/Label.swift +++ b/VDS/Components/Label/Label.swift @@ -286,7 +286,7 @@ open class Label: UILabel, ViewProtocol, UserInfoable { private func styleText(_ newValue: String!) { defer { invalidateIntrinsicContentSize() } - guard let newValue else { + guard let newValue, !newValue.isEmpty else { // We don't need to use attributed text super.attributedText = nil super.text = newValue @@ -311,7 +311,7 @@ open class Label: UILabel, ViewProtocol, UserInfoable { private func styleAttributedText(_ newValue: NSAttributedString?) { defer { invalidateIntrinsicContentSize() } - guard let newValue = newValue else { + guard let newValue, !newValue.string.isEmpty else { // We don't need any additional styling super.attributedText = newValue return