Prephirences icon indicating copy to clipboard operation
Prephirences copied to clipboard

UserDefaults clearAll doesn't work with a custom suite name

Open cassianodialpad opened this issue 5 years ago • 0 comments

In order to share preferences between my app and its extensions, I'm using UserDefaults(suiteName: "someSuiteName") instead UserDefaults.standard.

Because of the custom suite (domain name), the method clearAll from Prephirences doesn't work, as it uses the bundle identifier as the domain name (as implemented here: https://github.com/phimage/Prephirences/blob/5.0.1/Sources/UserDefaults%2BPrephirences.swift#L64).

Could you please provide some support for a custom suiteName?

cassianodialpad avatar Jul 22 '20 19:07 cassianodialpad