aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2023-12-19 12:51:31 -0700
committerNavan Chauhan <navanchauhan@gmail.com>2023-12-19 12:51:31 -0700
commit18effc433e66053931cb22d2c519d96ceefc8de6 (patch)
treebbef2321500e8a059fcfa1751d3bfd68751f0612
parent44632822e8ee7dbc7b679aaa070bacabba0a00b8 (diff)
add support for VisionOS
-rw-r--r--Sources/swiftGopherClient/gopherClient.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/Sources/swiftGopherClient/gopherClient.swift b/Sources/swiftGopherClient/gopherClient.swift
index c7542ee..e44bfcf 100644
--- a/Sources/swiftGopherClient/gopherClient.swift
+++ b/Sources/swiftGopherClient/gopherClient.swift
@@ -20,7 +20,7 @@ public class GopherClient {
///
/// It automatically chooses the appropriate `EventLoopGroup` based on the running platform.
public init() {
- if #available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *) {
+ if #available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, visionOS 1.0, *) {
self.group = NIOTSEventLoopGroup()
} else {
self.group = MultiThreadedEventLoopGroup(numberOfThreads: System.coreCount)
@@ -44,7 +44,7 @@ public class GopherClient {
to host: String, port: Int = 70, message: String,
completion: @escaping (Result<[gopherItem], Error>) -> Void
) {
- if #available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *) {
+ if #available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, visionOS 1.0, *) {
let bootstrap = NIOTSConnectionBootstrap(group: group)
.channelOption(ChannelOptions.socketOption(.so_reuseaddr), value: 1)
.channelInitializer { channel in