Skip to content

Commit 9f8f51c

Browse files
authored
Adds a fix for number of lines getting overridden by textRect() (#37)
1 parent a130a2d commit 9f8f51c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Sources/LCLabel/LCLabel.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ final public class LCLabel: UILabel {
309309
assert(
310310
!newBounds.isNegative,
311311
"The new bounds are negative with isnt allowed, check the frame or the textInsets")
312-
textContainer.maximumNumberOfLines = numberOfLines
313312
textContainer.size = newBounds.size
314313
layoutManager.ensureLayout(for: textContainer)
315314
let drawableFrame = layoutManager.usedRect(for: textContainer)

0 commit comments

Comments
 (0)