Skip to content

UserDefaultKits Property Wrapper of User Default for saving custom Codable object / variable

License

Notifications You must be signed in to change notification settings

quangnghiadev/UserDefaultKits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status SPM compatible Swift Xcode MIT

UserDefaultKits

UserDefaultKits Property Wrapper of User Default for saving custom Codable object / variable

Installation

Swift Package Manager

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

Usage

/// Saving primitive data type
@UserDefaultVariable(key: "accessToken", defaultValue: nil)
var accessToken: String?

/// Saving custom Codable object
@UserDefaultObject(key: "user")
var user: UserProfile?

License

  • UserDefaultKits is released under the MIT license. See LICENSE for more information.

About

UserDefaultKits Property Wrapper of User Default for saving custom Codable object / variable

Topics

Resources

License

Stars

Watchers

Forks

Languages