From 5d876c6267cf6152fce154bbd4baa49844786a07 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Wed, 3 Jan 2024 22:24:30 +0100 Subject: [PATCH] Fix "Protocol requirement cannot be declared '@_spi'" (#392) Co-authored-by: Vitalii Kotivskyi --- Sources/PlatformVersion.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/PlatformVersion.swift b/Sources/PlatformVersion.swift index 4799e127..5f049047 100644 --- a/Sources/PlatformVersion.swift +++ b/Sources/PlatformVersion.swift @@ -23,6 +23,9 @@ extension PlatformVersion { public var isCurrentOrPast: Bool { condition == .current || condition == .past } + + @_spi(Internals) + public var condition: PlatformVersionCondition? { nil } } public struct iOSVersion: PlatformVersion {