Skip to content

Commit

Permalink
Add visionOS platform support for NSUbiquitousKeyValueStore (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyz authored May 8, 2024
1 parent e8a7c46 commit 4957a79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/UserDefaultsDependency/UserDefaultsDependency.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ extension UserDefaults {
}
}
}
#if os(iOS) || os(macOS) || os(tvOS) || os(watchOS)
#if os(iOS) || os(macOS) || os(tvOS) || os(watchOS) || os(visionOS)
@available(iOS 5.0, tvOS 9.0, macOS 10.7, watchOS 9.0, *)
extension NSUbiquitousKeyValueStore {
fileprivate func contains(key: String) -> Bool {
Expand Down Expand Up @@ -313,7 +313,7 @@ extension Equatable {
}
}

#if os(iOS) || os(macOS) || os(tvOS) || os(watchOS)
#if os(iOS) || os(macOS) || os(tvOS) || os(watchOS) || os(visionOS)
extension UserDefaults.Dependency {
/// An iCloud-based container of key-value pairs you use to share data among
/// instances of your app running on a user's connected devices.
Expand Down

0 comments on commit 4957a79

Please sign in to comment.