CodableLocal 1.0.0

CodableLocal 1.0.0

Maintained by Johan Hernandez.



CodableLocal

Version License Platform

Example

UserDefaults+Codable

struct UserInfo : Codable {
  let userId: String
}

...

let defaults = UserDefaults.standard
try defaults.set(object: UserInfo(userId: "id1"), forKey: "current-user")
let info = try defaults.get(objectType: UserInfo.self, forKey: "current-user")

Requirements

  • Swift 5 or above

Installation

CodableLocal is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'CodableLocal'

Author

bithavoc, [email protected]

License

CodableLocal is available under the MIT license. See the LICENSE file for more info.