Skip to content

Commit 2322c87

Browse files
committed
WIP
1 parent 27a0bb9 commit 2322c87

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
@@ -122,6 +122,20 @@ extension iOSVersion {
122122
return nil
123123
#endif
124124
}
125+
126+
public static let v26 = iOSVersion {
127+
#if os(iOS)
128+
if #available(iOS 27, *) {
129+
return .past
130+
}
131+
if #available(iOS 26, *) {
132+
return .current
133+
}
134+
return .future
135+
#else
136+
return nil
137+
#endif
138+
}
125139
}
126140

127141
public struct tvOSVersion: PlatformVersion {

0 commit comments

Comments
 (0)