Skip to content

Commit

Permalink
One more tvOS build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Nov 25, 2024
1 parent cdebbca commit cbde4e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Neon/PlatformTextSystem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ extension TextView {
let offsetRect = visibleRect.offsetBy(dx: -origin.x, dy: -origin.y)

return textContainer?.textRange(for: offsetRect) ?? NSRange(0..<length)
#elseif os(iOS) || os(visionOS)
#elseif os(iOS) || os(visionOS) || os(tvOS)
let visibleRect = CGRect(origin: contentOffset, size: bounds.size)

return textContainer.textRange(for: visibleRect)
Expand Down

0 comments on commit cbde4e3

Please sign in to comment.