Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
Fixed Grapheme Clusters Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Salman Jamil authored and Salman Jamil committed Nov 14, 2018
1 parent 46f8e0a commit b279451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ReadMoreTextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public class ReadMoreTextView: UITextView {

if let originalAttributedText = _originalAttributedText?.mutableCopy() as? NSMutableAttributedString {
attributedText = _originalAttributedText
let range = NSRange(location: 0, length: text.length)
let range = NSRange(location: 0, length: text.unicodeScalars.count)
if let attributedReadLessText = attributedReadLessText {
originalAttributedText.append(attributedReadLessText)
}
Expand Down

0 comments on commit b279451

Please sign in to comment.