We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rectsFor
1 parent 95740ca commit 76eb034Copy full SHA for 76eb034
Sources/CodeEditTextView/TextLayoutManager/TextLayoutManager+Public.swift
@@ -203,7 +203,7 @@ extension TextLayoutManager {
203
/// - line: The line to calculate rects for.
204
/// - Returns: Multiple bounding rects. Will return one rect for each line fragment that overlaps the given range.
205
public func rectsFor(range: NSRange) -> [CGRect] {
206
- return lineStorage.linesInRange(range).flatMap { self.rectsFor(range: range, in: $0) }
+ return linesInRange(range).flatMap { self.rectsFor(range: range, in: $0) }
207
}
208
209
/// Calculates all text bounding rects that intersect with a given range, with a given line position.
0 commit comments