From f1dbf41ea21a42b5c49c2ff64cd0d85f6f388c2b Mon Sep 17 00:00:00 2001 From: Kaunteya Suryawanshi Date: Thu, 31 Aug 2023 01:17:45 +0530 Subject: [PATCH] visibleTextRange made public (#24) --- Sources/Neon/NSTextView+VisibleRange.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Neon/NSTextView+VisibleRange.swift b/Sources/Neon/NSTextView+VisibleRange.swift index 56b7793..0fe02f1 100644 --- a/Sources/Neon/NSTextView+VisibleRange.swift +++ b/Sources/Neon/NSTextView+VisibleRange.swift @@ -32,7 +32,7 @@ extension NSTextView { return layoutManager.characterRange(forGlyphRange: glyphRange, actualGlyphRange: nil) } - var visibleTextRange: NSRange { + public var visibleTextRange: NSRange { return textRange(for: visibleRect) } }