Skip to content

Commit de3e6b4

Browse files
committed
WIP
1 parent 99b92ef commit de3e6b4

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Sources/PlatformVersion.swift

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,20 @@ extension macOSVersion {
356356
return nil
357357
#endif
358358
}
359+
360+
public static let v26 = macOSVersion {
361+
#if os(macOS)
362+
if #available(macOS 27, *) {
363+
return .past
364+
}
365+
if #available(macOS 26, *) {
366+
return .current
367+
}
368+
return .future
369+
#else
370+
return nil
371+
#endif
372+
}
359373
}
360374

361375
public struct visionOSVersion: PlatformVersion {
@@ -396,5 +410,19 @@ extension visionOSVersion {
396410
return nil
397411
#endif
398412
}
413+
414+
public static let v26 = visionOSVersion {
415+
#if os(visionOS)
416+
if #available(visionOS 27, *) {
417+
return .past
418+
}
419+
if #available(visionOS 26, *) {
420+
return .current
421+
}
422+
return .future
423+
#else
424+
return nil
425+
#endif
426+
}
399427
}
400428
#endif

0 commit comments

Comments
 (0)