Skip to content

Commit 2657f2c

Browse files
authored
Merge pull request #11 from badoo/remove_layoutmanager_leading
Remove FontLeading from TextCalculations
2 parents ae22da0 + e7c27af commit 2657f2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

HyperLabel/TextLayoutInfoProvider.swift

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ final class TextLayoutInfoProvider {
3434
self.textContainer = NSTextContainer()
3535
self.textStorage = NSTextStorage()
3636

37+
self.layoutManager.usesFontLeading = false
3738
self.layoutManager.addTextContainer(self.textContainer)
3839
self.textStorage.addLayoutManager(self.layoutManager)
3940
}

0 commit comments

Comments
 (0)