From 51820794db83eec5f1a28e37d172de0dbd56a898 Mon Sep 17 00:00:00 2001 From: "Christiano, Kevin" Date: Fri, 3 May 2019 14:27:51 -0400 Subject: [PATCH] remove test val. --- MVMCoreUI/Atoms/Views/Label.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MVMCoreUI/Atoms/Views/Label.swift b/MVMCoreUI/Atoms/Views/Label.swift index 54788654..3431a1fc 100644 --- a/MVMCoreUI/Atoms/Views/Label.swift +++ b/MVMCoreUI/Atoms/Views/Label.swift @@ -614,7 +614,7 @@ extension UITapGestureRecognizer { textContainer.maximumNumberOfLines = label.numberOfLines let labelSize = label.bounds.size textContainer.size = labelSize - let j = layoutManager.boundingRect(forGlyphRange: targetRange, in: textContainer) + let indexOfCharacter = layoutManager.characterIndex(for: location(in: label), in: textContainer, fractionOfDistanceBetweenInsertionPoints: nil) return NSLocationInRange(indexOfCharacter, targetRange)