Merge branch 'develop' into feature/heart

This commit is contained in:
Lekshmi S 2020-10-07 10:29:29 +05:30
commit ccc7f55bdd

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