Skip to content

Commit

Permalink
Exclude tvOS
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Jan 22, 2024
1 parent 9d743e8 commit a2ec6b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Neon/Platform.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import AppKit

public typealias TextStorageEditActions = NSTextStorageEditActions
public typealias TextView = NSTextView
#elseif os(iOS) || os(iOS) || os(tvOS) || os(visionOS)
#elseif os(iOS) || os(iOS) || os(visionOS)
import UIKit

public typealias TextStorageEditActions = NSTextStorage.EditActions
public typealias TextView = UITextView
#endif

#if os(macOS) || os(iOS) || os(iOS) || os(tvOS) || os(visionOS)
#if os(macOS) || os(iOS) || os(iOS) || os(visionOS)
extension NSTextStorage: VersionedContent {
public var currentVersion: Int {
hashValue
Expand Down
3 changes: 3 additions & 0 deletions Sources/Neon/TextViewSystemInterface.swift
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ extension LayoutManagerSystemInterface: TextSystemInterface {
}
#endif

#if os(macOS) || os(iOS) || os(visionOS)
/// A concrete ``TextSystemInterface`` that uses `NSTextLayoutManager` rendering attributes.
@available(macOS 12.0, iOS 16.0, tvOS 16.0, *)
@MainActor
Expand Down Expand Up @@ -271,3 +272,5 @@ extension TextStorageSystemInterface: TextSystemInterface {
textStorage
}
}

#endif

0 comments on commit a2ec6b9

Please sign in to comment.