Defaults icon indicating copy to clipboard operation
Defaults copied to clipboard

💾 Swifty and modern UserDefaults

Results 47 Defaults issues
Sort by recently updated
recently updated
newest added

When macOS 12 is out. https://github.com/apple/swift-evolution/blob/main/proposals/0314-async-stream.md For now, we can just wrap the Publisher API. There's an adapter here if Apple doesn't provide one out of the box: https://forums.swift.org/t/swift-concurrency-reactive-programming/49547 I'm...

I have: ```swift extension Defaults.Keys { static let refreshInterval = Key("refreshInterval") } ``` And I would like to specify an initial value, meaning one that is used before any value...

enhancement
help wanted

We don't plan to do this for many years. Just opening an issue so we don't forget to eventually do it.

`.updates()` is better in every way. Having two ways to do the same is also confusing. We cannot remove `.observe()` for a long time, but maybe we could add availability...

I very often need to only trigger when the value actually changes. Not just that it's set. It could be set to the same value many times and I don't...

enhancement
help wanted

I have encountered a need where I would like to create a new key where the value is derived from one or more existing keys. For example, let's say you...

Good afternoon and thanks for this amazing package. I came across a small error, I can not get the view to be updated when I reset the value to default....

enhancement

[](https://issuehunt.io/r/sindresorhus/Defaults/issues/43) Since these publisher are a combination of publishers, users cannot use `. removeDuplicates()` directly on these publishers, but we can do so internally. Should it be true by default?...

enhancement
:dollar: Funded on Issuehunt

Sometimes you need to change a structure, for example, add a new property to a struct that is saved in user defaults. You can already do this without migrations by...

enhancement

https://developer.apple.com/documentation/objectivec/nsobject/keyvalueobservingpublisher This should reduce some overhead. Right now, they're based on the [callback API](https://github.com/sindresorhus/Defaults/blob/master/Sources/Defaults/Observation.swift). --- Eventually (when this package can target macOS 10.15), I imagine the callback APIs like `Defaults.observe()`...

enhancement
help wanted