Update SpellChecker.swift to support VisionOS (#32)

This commit is contained in:
Miwa / Ensan
2024-02-04 01:32:50 +09:00
committed by GitHub
parent 365e32e7bf
commit ff1d3282c8

View File

@@ -13,7 +13,7 @@ import AppKit
#endif
@MainActor final class SpellChecker {
#if os(iOS) || os(tvOS)
#if os(iOS) || os(tvOS) || os(visionOS)
private let checker = UITextChecker()
#elseif os(macOS)
private let checker = NSSpellChecker.shared