diff --git a/MVMCoreUI/Atoms/Views/Label.swift b/MVMCoreUI/Atoms/Views/Label.swift index 99576509..862fd829 100644 --- a/MVMCoreUI/Atoms/Views/Label.swift +++ b/MVMCoreUI/Atoms/Views/Label.swift @@ -514,7 +514,7 @@ public typealias ActionBlock = () -> () // } // } - static func boundingRect(forCharacterRange range: NSRange, in label: Label) -> CGRect { + public static func boundingRect(forCharacterRange range: NSRange, in label: Label) -> CGRect { guard let attributedText = label.attributedText else { return CGRect() } @@ -531,7 +531,7 @@ public typealias ActionBlock = () -> () layoutManager.addTextContainer(textContainer) textStorage.addLayoutManager(layoutManager) - textContainer.lineFragmentPadding = 0 + textContainer.lineFragmentPadding = 0.0 textContainer.lineBreakMode = label.lineBreakMode textContainer.maximumNumberOfLines = label.numberOfLines textContainer.size = label.bounds.size