Skip to content

Commit 3bd371d

Browse files
author
Vitalii Kotivskyi
committed
Fixes "Protocol requirement ... cannot be declared '@_spi' ..." error that happens with compile flag BUILD_LIBRARY_FOR_DISTRIBUTION=YES
Applied same fix as in siteline#339
1 parent b0e1e57 commit 3bd371d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/PlatformVersion.swift

+3
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)