Skip to content

Commit

Permalink
Add watchOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlokhorst committed Apr 20, 2023
1 parent d699a94 commit c33bfaa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// swift-tools-version:5.1
// swift-tools-version:5.7
import PackageDescription

let package = Package(
name: "CloudStorage",
platforms: [
.macOS(.v10_15),
.iOS(.v13),
.tvOS(.v13),
.macOS(.v12),
.iOS(.v14),
.tvOS(.v14),
.watchOS(.v9),
],
products: [
.library(name: "CloudStorage", targets: ["CloudStorage"]),
Expand Down
2 changes: 1 addition & 1 deletion Sources/CloudStorage/CloudStorageSync.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class CloudStorageSync: ObservableObject {
object: nil)
ubiquitousKvs.synchronize()

#if canImport(UIKit)
#if canImport(UIKit) && !os(watchOS)
NotificationCenter.default.addObserver(
ubiquitousKvs,
selector: #selector(NSUbiquitousKeyValueStore.synchronize),
Expand Down

0 comments on commit c33bfaa

Please sign in to comment.