Closed basememara closed 3 years ago
Figured out how to use it without any code changes need to Foil
🎉
See PR #5 for added to readme and tests.
Thank you for a light and precise UserDefaults wrapper!
Thanks @basememara ! 💯
I'll try to review that PR later today 😊
Is there a way to use the native
UserDefaults.publisher
added by Combine? It seems this only works if the properties were added as extensions toUserDefaults
instead of a separateAppSettings
type. For example, this test passes today:Since you cannot have more than one property wrapper on a field (I think), I'm wondering if
WrappedDefault
can offer a publisher on the property as well so instead of adding the property as an extension toUserDefaults
, to be exposed from the same property that was created inTestSettings
: