Skip to content

Commit

Permalink
Trying to fix tvOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Sep 8, 2024
1 parent 4f0b7e1 commit 6280035
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Sources/Neon/PlatformTextSystem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ import Foundation

import RangeState

#if os(macOS) && !targetEnvironment(macCatalyst)
#if os(macOS)
import AppKit

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

public typealias TextView = UITextView
typealias PlatformColor = UIColor
#endif

#if os(macOS) || os(iOS) || os(visionOS)
#if os(macOS) || os(iOS) || os(visionOS) || os(tvOS)
extension NSTextStorage: VersionedContent {
public var currentVersion: Int {
let value = hashValue
Expand Down
2 changes: 1 addition & 1 deletion Sources/Neon/TreeSitterClient+Neon.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ extension LanguageLayer.Content {
}
}

#if os(macOS) || os(iOS) || os(visionOS)
#if os(macOS) || os(iOS) || os(visionOS) || os(tvOS)
extension TextViewSystemInterface {

Check failure on line 63 in Sources/Neon/TreeSitterClient+Neon.swift

View workflow job for this annotation

GitHub Actions / Test (platform=tvOS Simulator,name=Apple TV)

cannot find type 'TextViewSystemInterface' in scope
func languageLayerContent(with limit: Int) -> LanguageLayer.Content {
LanguageLayer.Content(string: textStorage.string, limit: limit)
Expand Down

0 comments on commit 6280035

Please sign in to comment.