Skip to content

Commit

Permalink
Merge pull request #28 from MohammadRezaAnsari/LineSpacing
Browse files Browse the repository at this point in the history
Fix line spacing bug
  • Loading branch information
MohammadRezaAnsari authored Jul 5, 2022
2 parents 38cbb6f + 019a30b commit 0208da1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public extension String {
paragraphStyle.lineSpacing = spacing
attributedString.addAttribute(.paragraphStyle,
value: paragraphStyle,
range: NSRange(location: 0, length: self.count))
range: NSRange(location: 0, length: self.utf16.count))
return NSAttributedString(attributedString: attributedString)
}
}

0 comments on commit 0208da1

Please sign in to comment.