Skip to content

Commit 3322107

Browse files
author
Andrey Radchishin
committed
Use String directly instead of String.characters
1 parent 7731adc commit 3322107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Views/InfoLabel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ open class InfoLabel: UILabel {
5050

5151
// Perform quick "rough cut"
5252
while numberOfLines(truncatedText) > numberOfVisibleLines * 2 {
53-
truncatedText = String(truncatedText.characters.prefix(truncatedText.characters.count / 2))
53+
truncatedText = String(truncatedText.prefix(truncatedText.count / 2))
5454
}
5555

5656
// Capture the endIndex of truncatedText before appending ellipsis

0 commit comments

Comments
 (0)