Skip to content

Commit

Permalink
Add tvOS guard
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Apr 5, 2024
1 parent 3f5f88e commit dbe2d10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Glyph/NSTextView+Additions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -41,3 +42,4 @@ extension TextView {
textSet(for: visibleContainerRect)
}
}
#endif

0 comments on commit dbe2d10

Please sign in to comment.