Skip to content

Commit 4fc9039

Browse files
Fixed an issue building for visionOS
1 parent af44db3 commit 4fc9039

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/CodableDatastore/Indexes/UUID+Comparable.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import Foundation
1010

11+
#if swift(<5.9) || !os(xrOS)
1112
/// Make UUIDs comparable, so that they can be used transparently as an index.
1213
///
1314
/// - SeeAlso: https://github.com/apple/swift-foundation/blob/5388acf1d929865d4df97d3c50e4d08bc4c6bdf0/Sources/FoundationEssentials/UUID.swift#L135-L156
@@ -35,3 +36,4 @@ extension UUID: Comparable {
3536
return result < 0
3637
}
3738
}
39+
#endif

0 commit comments

Comments
 (0)