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

Sometimes you cannot define a static default value as it may change during the lifetime of the app. For example, the default value is the current system appearance or a...

macOS 13.0 introduced a new SwiftUI Scene for showing a menubar icon: [MenuBarExtra](https://developer.apple.com/documentation/swiftui/menubarextra/). When using the initializer with `isInserted`, the settings window will just hang and show a beachball if...

Some users might want this. Personally, I prefer `@Default` as it's more powerful with predefined defaults and support for `Codable`. TODO: - [ ] Doc comments. - [ ] Update...

Hello, I am not sure if it's a bug or I am doing something wrong. I have a setting window that users can change settings in. It uses property wrapper...

bug
help wanted

https://github.com/apple/swift-evolution/blob/main/proposals/0320-codingkeyrepresentable.md It requires macOS 12.3 / iOS 15.4 so we would have to preserve the existing bridge.

```swift struct PlainHourMinuteTimeRange: Hashable, Codable { var start: PlainHourMinuteTime var end: PlainHourMinuteTime } extension PlainHourMinuteTimeRange: Defaults.Serializable { struct Bridge: Defaults.Bridge { typealias Value = PlainHourMinuteTimeRange typealias Serializable = [PlainHourMinuteTime] public...

bug

Yesterday I updated Xcode to version 13.3, and now there are a number of errors about DefaultsSerializable. When creating a new project and adding the example code from here, I...

There are some new generics features in Swift 5.7. When it's out, we should look into whether there are any things we could simplify with it or something we should...

https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore It would be nice to be able to mark keys as being sync'able and have them be automatically synced with iCloud. Syncing settings/data is a very common need, but...

https://developer.apple.com/documentation/docc The only blocker is that there's currently no way to run it on GitHub Pages.

enhancement
help wanted