SwiftyUserDefaults
SwiftyUserDefaults copied to clipboard
Is it possible to add support for NSUbiquitousKeyValueStore?
I believe its API is almost the same as NSUserDefaults
I've just copied 2.2.0 version and changed classes and extensions with NSUbiquitousKeyValueStore, worked well for my application. NSUbiquitousKeyValueStore-Swifty
I hope NSUbiquitousKeyValueStore support will be added to this repository also.
You can use it with "iCloudDefaults" global variable instead of "Defaults"
iCloudDefaults[.someKeyDefault]
Just FYI, i use SwiftyUserDefaults
with Zephyr
https://github.com/ArtSabintsev/Zephyr effortlessly. Highly recommend, you literally have to do nothing besides telling Zephyr what keys you want to watch.