We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rectsFor(range:line:)
1 parent c7ecbde commit d447d78Copy full SHA for d447d78
1 file changed
Sources/CodeEditTextView/TextLayoutManager/TextLayoutManager+Public.swift
@@ -177,8 +177,6 @@ extension TextLayoutManager {
177
private func rectsFor(range: NSRange, in line: borrowing TextLineStorage<TextLine>.TextLinePosition) -> [CGRect] {
178
guard let textStorage = (textStorage?.string as? NSString) else { return [] }
179
180
- _ = preparePositionForDisplay(line)
181
-
182
// Don't make rects in between characters
183
let realRangeStart = textStorage.rangeOfComposedCharacterSequence(at: range.lowerBound)
184
let realRangeEnd = textStorage.rangeOfComposedCharacterSequence(at: range.upperBound - 1)
0 commit comments