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

Commit

Permalink
Merge pull request #47 from salmanjamil/GraphameClusters
Browse files Browse the repository at this point in the history
Fixed Grapheme Clusters Issue
  • Loading branch information
ilyapuchka authored Nov 16, 2018
2 parents 46f8e0a + b279451 commit b46b38e
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 b46b38e

Please sign in to comment.