diff --git a/Sources/SwiftOCA/OCP.1/Ocp1Connection+Connect.swift b/Sources/SwiftOCA/OCP.1/Ocp1Connection+Connect.swift index 383f6df..972198f 100644 --- a/Sources/SwiftOCA/OCP.1/Ocp1Connection+Connect.swift +++ b/Sources/SwiftOCA/OCP.1/Ocp1Connection+Connect.swift @@ -288,7 +288,9 @@ extension Ocp1Connection { } public var currentConnectionState: Ocp1ConnectionState { +#if canImport(Darwin) access(keyPath: \.currentConnectionState) +#endif return _connectionState.value }