From ec358c22ea8045bd7d07e1dfedabeb9593ec6ade Mon Sep 17 00:00:00 2001 From: bobek-balinek Date: Fri, 9 Oct 2026 19:41:41 +0100 Subject: [PATCH] Add missing visionOS argument for when using UTF8Span to produce CollationOrder. Without this the package failed to build inside visionOS producing the following compiler errors: - UTF8Span is only available in visionOS 26.0 or newer - isCanonicallyLessThan is only available in visionOS 26.0 or newer --- .../SQLiteData/StructuredQueries+GRDB/CustomCollations.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SQLiteData/StructuredQueries+GRDB/CustomCollations.swift b/Sources/SQLiteData/StructuredQueries+GRDB/CustomCollations.swift index 6ca475c8..9a7bc8f2 100644 --- a/Sources/SQLiteData/StructuredQueries+GRDB/CustomCollations.swift +++ b/Sources/SQLiteData/StructuredQueries+GRDB/CustomCollations.swift @@ -78,7 +78,7 @@ public nonisolated struct CanonicalCollation: DatabaseCollation, Sendable { _ lhs: UnsafeRawBufferPointer, _ rhs: UnsafeRawBufferPointer ) -> CollationOrder { #if compiler(>=6.2) - if #available(iOS 26, macOS 26, tvOS 26, watchOS 26, *) { + if #available(iOS 26, macOS 26, tvOS 26, watchOS 26, visionOS 26, *) { do { let lhsSpan = try UTF8Span(validating: lhs.assumingMemoryBound(to: UInt8.self).span) let rhsSpan = try UTF8Span(validating: rhs.assumingMemoryBound(to: UInt8.self).span)