Skip to content

Commit

Permalink
Call into visibleSet instead of duplicating the logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Oct 14, 2024
1 parent d213695 commit 77d4a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Neon/TextViewSystemInterface.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public struct TextViewSystemInterface {

extension TextViewSystemInterface: TextSystemInterface {
private var effectiveInterface: (any TextSystemInterface)? {
let provider = { IndexSet(textView.visibleTextRange) }
let provider = { visibleSet }

if #available(macOS 12.0, iOS 16.0, tvOS 16.0, *) {
if let textLayoutManager {
Expand Down

0 comments on commit 77d4a12

Please sign in to comment.