Skip to content

Commit 369252e

Browse files
authored
Merge pull request #152 from andreyrd/string-characters-deprecated
Use String directly instead of String.characters
2 parents 7731adc + 3322107 commit 369252e

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)