Skip to content

NSUserDefaults library with definition of structure

License

Notifications You must be signed in to change notification settings

motokiee/AKUserDefaults

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AKUserDefaults

NSUserDefaults library with definition of structure

Usage

class MyCustomUserDefaults : AKUserDefaults {
    let name = StringKey(key: "name")
    let age  = IntKey(key: "age")
}
let ud = MyCustomUserDefaults()


ud.name.set("sato")
ud.age.set(35)
ud.synchronize()

print(ud.name.get())
print(ud.age.get())


ud.name.set("suzuki")
ud.age.set(45)
ud.synchronize()
        
print(ud.name.get())
print(ud.age.get())

About

NSUserDefaults library with definition of structure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 91.0%
  • Objective-C 9.0%