Popularity
0.7
Stable
Activity
0.0
Stable
14
2
2

Code Quality Rank: L5
Programming language: Swift
License: MIT License
Tags: Database    

Akaibu-NSUserDefaults alternatives and similar libraries

Based on the "Database" category.
Alternatively, view Akaibu-NSUserDefaults alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Akaibu-NSUserDefaults or a related project?

Add another 'Database' Library

README

Akaibu

What is it ?

  • Archive any class in just ONE-LINE of code.
  • Automatically map class's properties under the hood.
  • Drop in replacement of NSObject
  • Swifty <3

Installation

Drag n drop the Akaibu.swift into your project directory. Enjoy ~

// By extending Akaibu, it inherits from NSObject and NSCoding automatically

class Model: Akaibu {
    //.....
}

tl;dr

That's all you need to know

model.saveWithKey(key) // archive to NSUserDefaults
// or
Akaibu.saveWithKey(model, key) // archive to NSUserDefaults


let model = Akaibu.loadWithKey(key) as? Model // load from NSUserDefaults

Clear saved objects

Akaibu.removeAll()

Why Akaibu ?

  • Easy to use and save tons of time
  • You don't want CoreData
  • You are sick of encodeWithCoder: and initWithCoder:

About Akaibu:

  • Akaibu is inspired by the japanese word γ€Œγ‚’γƒΌγ‚«γ‚€γƒ–γ€ , which means archive.