/Storage

Primary LanguageSwiftOtherNOASSERTION

Storage logo

CI Status Version License Platform

Usage

Saving an object

Storage.save(object: object, "object.extension") { error in 
  if error != nil {
    // handle error
  }
}

Loading an object from disk

let object = Storage.load("object.extension")

Save contents to a file

Storage.save(contents: expectedString, "MyFile.txt") { error in
  if error != nil {
    // handle error
  }
}

Load contents from a file

let contents = Storage.load(contentsAtPath: "MyFile.txt")

Installation

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

pod 'Storage'

Author

zenangst, chris@zenangst.com

License

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