Skip to content

Commit 99b92ef

Browse files
committed
WIP
1 parent d70faba commit 99b92ef

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Sources/PlatformVersion.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,20 @@ extension tvOSVersion {
232232
return nil
233233
#endif
234234
}
235+
236+
public static let v26 = tvOSVersion {
237+
#if os(tvOS)
238+
if #available(tvOS 27, *) {
239+
return .past
240+
}
241+
if #available(tvOS 26, *) {
242+
return .current
243+
}
244+
return .future
245+
#else
246+
return nil
247+
#endif
248+
}
235249
}
236250

237251
public struct macOSVersion: PlatformVersion {

0 commit comments

Comments
 (0)