sunshinejr / SwiftyUserDefaults

Modern Swift API for NSUserDefaults
http://radex.io/swift/nsuserdefaults/static
MIT License
4.86k stars 367 forks source link

Consider support for namespaces (nested keys) #273

Open ky1vstar opened 3 years ago

ky1vstar commented 3 years ago

I had an idea of implementing namespace feature to separate preferences for different applications modules. I've created extension library here, but what do you think about migrating this feature to the main library.

sunshinejr commented 3 years ago

hey @ky1vstar, this might be really interesting! if there is a way to add that without a breaking change (meaning current users wouldn't need to do much to migrate to a new version) I'd be happy to review it. Thanks for the thought!

ky1vstar commented 3 years ago

@sunshinejr can you review code here https://github.com/ky1vstar/SwiftyUserDefaultsNamespaces and decide wether it can be added to your library? Im afraid I don't have enough time to make PR myself.