Add ability to set user defaults suite
Hi,
Here's a small PR to add a function for setting which UserDefaults suite to use. I'm using it in my own app to make use of Zephyr while using App Groups.
Example usage:
if let suite = UserDefaults(suiteName: "group.com.example.app-name") {
Zephyr.setUserDefaultsSuite(to: suite)
}
I'm not sure if you accept external PRs – if this isn't something you're looking for then no worries. I'm also happy to update this PR to document it in the readme, but I figured I'd wait to see what you think before doing that.
hey, feel free to update the docs and I'll merge this in. Thanks for the contribution!
I'm interested in this update as well!
Sounds good - please update the docs in this PR and I'll happily merge it if you can confirm it works.
Sorry for the delay, I went on holiday right after making the initial PR. I've updated the readme now.
if you can confirm it works
I'm using it in production in my app SalaryPig and all seems to work well.
Looks good! Will merge.
Thanks! Just to add, I've been using the update in an app I'm developing.. been using for a few weeks and no issues
Great! I'll push via cocoa pods soon.
Just released as v3.8.0
Closing this issue