Skip to content

Commit 5d876c6

Browse files
KotivskyiVitalii Kotivskyi
and
Vitalii Kotivskyi
authored
Fix "Protocol requirement cannot be declared '@_spi'" (#392)
Co-authored-by: Vitalii Kotivskyi <[email protected]>
1 parent b0e1e57 commit 5d876c6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/PlatformVersion.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ extension PlatformVersion {
2323
public var isCurrentOrPast: Bool {
2424
condition == .current || condition == .past
2525
}
26+
27+
@_spi(Internals)
28+
public var condition: PlatformVersionCondition? { nil }
2629
}
2730

2831
public struct iOSVersion: PlatformVersion {

0 commit comments

Comments
 (0)