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

Commit

Permalink
Sync to cloud from monitored user defaults now occurs on background q…
Browse files Browse the repository at this point in the history
…ueue
  • Loading branch information
ArtSabintsev committed Dec 1, 2015
1 parent dfa4f51 commit 49d1fd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Zephyr.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Zephyr"
s.version = "1.4.0"
s.version = "1.4.1"
s.summary = "Effortlessly synchronize NSUserDefaults over iCloud"

s.description = <<-DESC
Expand Down
6 changes: 3 additions & 3 deletions Zephyr.swift
Original file line number Diff line number Diff line change
Expand Up @@ -504,11 +504,11 @@ extension Zephyr {

if object is NSUserDefaults {
NSUserDefaults.standardUserDefaults().setObject(NSDate(), forKey: ZephyrSyncKey)
} else if object is NSUbiquitousKeyValueStore {
NSUbiquitousKeyValueStore.defaultStore().setObject(NSDate(), forKey: ZephyrSyncKey)
}

Zephyr.sync(keyPath)
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), {
Zephyr.sync(keyPath)
})

}

Expand Down

0 comments on commit 49d1fd3

Please sign in to comment.