Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
Changes after merging #39
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtSabintsev committed Aug 8, 2019
1 parent 66ebabe commit bb5847f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Zephyr.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import Foundation
#if os(iOS) || os(tvOS) || os(watchOS)
#if os(iOS) || os(tvOS)
import UIKit
#endif

Expand Down Expand Up @@ -68,9 +68,9 @@ public final class Zephyr: NSObject {
NotificationCenter.default.addObserver(self, selector: #selector(keysDidChangeOnCloud(notification:)),
name: NSUbiquitousKeyValueStore.didChangeExternallyNotification,
object: nil)
#if os(iOS) || os(tvOS) || os(watchOS)
#if os(iOS) || os(tvOS)
NotificationCenter.default.addObserver(self, selector: #selector(willEnterForeground(notification:)),
name: .UIApplicationWillEnterForeground,
name: UIApplication.willEnterForegroundNotification,
object: nil)
#endif
NSUbiquitousKeyValueStore.default.synchronize()
Expand Down

0 comments on commit bb5847f

Please sign in to comment.