Swiftpack.co -  sindresorhus/Defaults as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
sindresorhus/Defaults
Swifty and modern UserDefaults
.package(url: "https://github.com/sindresorhus/Defaults.git", from: "v5.0.0")

404: Not Found

GitHub

link
Stars: 865
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

8 weeks ago

Breaking

  • Please read the migration guide.
  • Removed NSSecureCodingKey and NSSecureCodingOptionalKey.
    • You can now just use Key instead.
  • Dropped support for Carthage and CocoaPods.
    • If you use either of these, you can still use Swift Package Manager just for this package.

Improvements

  • Added support for more built-in Swift types.
  • Improved the stored representation of many types.
    • For example, Array is now stored as a native UserDefaults array instead of being stored as a JSON stringified string. Same with Set and Dictionary.
  • Enums no longer need to be Codable. (Existing usage requires migration)
  • Added support for storing NSColor and UIColor.
  • Added Defaults.Toggle.

Meta

Huge thanks to @hank121314 for doing a lot of the work on this release.


https://github.com/sindresorhus/Defaults/compare/v4.2.2...v5.0.0

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API