UserDefaultKits Property Wrapper of User Default for saving custom Codable object / variable
You can use The Swift Package Manager to install UserDefaultKits by adding https://github.com/quangnghiadev/UserDefaultKits.git to Swift Package of your XCode project
/// Saving primitive data type
@UserDefaultVariable(key: "accessToken", defaultValue: nil)
var accessToken: String?
/// Saving custom Codable object
@UserDefaultObject(key: "user")
var user: UserProfile?
- UserDefaultKits is released under the MIT license. See LICENSE for more information.