Skip to content

Commit c0b9b06

Browse files
committed
fixing visionOS issue
1 parent 4a3013e commit c0b9b06

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/SundialKitConnectivity/Extensions/WCSession.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
extension WCSession {
1010
/// polyfill for whether the app is installed on the other device
1111
public var isPairedAppInstalled: Bool {
12-
#if os(iOS)
12+
#if os(iOS) || os(visionOS)
1313
return isWatchAppInstalled
1414
#else
1515
return isCompanionAppInstalled

Sources/SundialKitConnectivity/WatchConnectivitySession+WCSessionDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
)
4040
}
4141

42-
#if os(iOS)
42+
#if os(iOS) || os(visionOS)
4343

4444
internal func sessionDidBecomeInactive(_: WCSession) {
4545
delegate?.sessionDidBecomeInactive(self)

Sources/SundialKitNetwork/Extensions/PathStatus.UnsatisfiedReason.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public import SundialKitCore
2121
]
2222

2323
// Add vpnInactive mapping on newer platforms where it's available
24-
if #available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, *) {
24+
if #available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *) {
2525
mappings[.vpnInactive] = .vpnInactive
2626
}
2727

0 commit comments

Comments
 (0)