Merge branch 'bugfix/special_label_check' into 'develop'

check length

See merge request BPHV_MIPS/mvm_core_ui!607
This commit is contained in:
Pfeil, Scott Robert 2020-10-06 10:34:22 -04:00
commit 675ed1c19e

View File

@ -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) {