From dbe2d109f9945fb6d38968a1928755a438dde122 Mon Sep 17 00:00:00 2001 From: Matt <85322+mattmassicotte@users.noreply.github.com> Date: Fri, 5 Apr 2024 11:53:23 -0400 Subject: [PATCH] Add tvOS guard --- Sources/Glyph/NSTextView+Additions.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/Glyph/NSTextView+Additions.swift b/Sources/Glyph/NSTextView+Additions.swift index 8977475..c35fb38 100644 --- a/Sources/Glyph/NSTextView+Additions.swift +++ b/Sources/Glyph/NSTextView+Additions.swift @@ -8,6 +8,7 @@ import UIKit typealias TextView = UITextView #endif +#if os(macOS) || os(iOS) || os(visionOS) extension TextView { var visibleContainerRect: CGRect { #if os(macOS) && !targetEnvironment(macCatalyst) @@ -41,3 +42,4 @@ extension TextView { textSet(for: visibleContainerRect) } } +#endif