Merge branch 'bugfix/special_label_check' into 'develop'
check length See merge request BPHV_MIPS/mvm_core_ui!607
This commit is contained in:
commit
675ed1c19e
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user