From 7c636a00b1ac34a6886480cd73aa6b774f3a1d60 Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Tue, 6 Oct 2020 10:30:37 -0400 Subject: [PATCH] check length --- MVMCoreUI/Atomic/Atoms/Views/Label/Label.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MVMCoreUI/Atomic/Atoms/Views/Label/Label.swift b/MVMCoreUI/Atomic/Atoms/Views/Label/Label.swift index 15cf5a22..c9f676a8 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/Label/Label.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/Label/Label.swift @@ -257,7 +257,7 @@ public typealias ActionBlock = () -> () * Only other reference found of issue: https://www.thetopsites.net/article/58142205.shtml */ if #available(iOS 13, *) { - if let attributedText = attributedText, let text = text { + if let attributedText = attributedText, let text = text, !text.isEmpty { let attributedString = NSMutableAttributedString(string: text) let range = NSRange(location: 0, length: text.count) for attribute in attributedText.attributes(at: 0, effectiveRange: nil) {