Skip to content

Commit fa2c5c5

Browse files
authored
Add visionOS Support (#17)
1 parent 8ca982b commit fa2c5c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/WSCore/String+validatingString.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import NIOCore
1717
extension String {
1818
init?(buffer: ByteBuffer, validateUTF8: Bool) {
1919
#if compiler(>=6)
20-
if #available(macOS 15, iOS 18, tvOS 18, watchOS 11, *), validateUTF8 {
20+
if #available(macOS 15, iOS 18, tvOS 18, watchOS 11, visionOS 2, *), validateUTF8 {
2121
do {
2222
var buffer = buffer
2323
self = try buffer.readUTF8ValidatedString(length: buffer.readableBytes)!

0 commit comments

Comments
 (0)