Update StructuredFieldValueParser to add missing visionOS guard (#67)

Update StructuredFieldValueParser to add missing visionOS guard matching
the guards on the called API. This was causing failures to compile for
visionOS
This commit is contained in:
Rick Newton-Rogers authored and GitHub committed 2025-05-13 13:30:24 +01:00
1 parent 295bc9d823
commit db6eea3692
1 file changed
+1 -1
@@ -527,7 +527,7 @@ extension StructuredFieldValueParser {
byteArray.append(octet)
case asciiDquote:
#if compiler(>=6.0)
if #available(macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, *) {
if #available(macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, *) {
let unicodeSequence = String(validating: byteArray, as: UTF8.self)
guard let unicodeSequence else {