Skip to content

Commit

Permalink
Adds a fix for number of lines getting overridden by textRect() (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
mustiikhalil committed Jan 28, 2023
1 parent a130a2d commit 9f8f51c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Sources/LCLabel/LCLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ final public class LCLabel: UILabel {
assert(
!newBounds.isNegative,
"The new bounds are negative with isnt allowed, check the frame or the textInsets")
textContainer.maximumNumberOfLines = numberOfLines
textContainer.size = newBounds.size
layoutManager.ensureLayout(for: textContainer)
let drawableFrame = layoutManager.usedRect(for: textContainer)
Expand Down

0 comments on commit 9f8f51c

Please sign in to comment.