From 9f8f51ce6bee072c81b14dc3bf0e6cbb258163be Mon Sep 17 00:00:00 2001 From: mustiikhalil <26250654+mustiikhalil@users.noreply.github.com> Date: Sat, 28 Jan 2023 21:15:34 +0100 Subject: [PATCH] Adds a fix for number of lines getting overridden by textRect() (#37) --- Sources/LCLabel/LCLabel.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Sources/LCLabel/LCLabel.swift b/Sources/LCLabel/LCLabel.swift index c20695d..0124908 100644 --- a/Sources/LCLabel/LCLabel.swift +++ b/Sources/LCLabel/LCLabel.swift @@ -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)