You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should use NSString.length instead of String.count when dealing with NSRange and NSAttributedString. NSRange(location: 0, length: (labelText as NSString).length) is preferred to NSRange(location: 0, length:labelText.count).
The error will occur when text is matching the suggestion "George😁Washington".
The text was updated successfully, but these errors were encountered:
We should use NSString.length instead of String.count when dealing with NSRange and NSAttributedString. NSRange(location: 0, length: (labelText as NSString).length) is preferred to NSRange(location: 0, length:labelText.count).
The error will occur when text is matching the suggestion "George😁Washington".
The text was updated successfully, but these errors were encountered: