OTHER License
Storage.save(object: object, "object.extension") { error in
if error != nil {
// handle error
}
}
let object = Storage.load("object.extension")
Storage.save(contents: expectedString, "MyFile.txt") { error in
if error != nil {
// handle error
}
}
let contents = Storage.load(contentsAtPath: "MyFile.txt")
Storage is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Storage'
zenangst, [email protected]
Storage is available under the MIT license. See the LICENSE file for more info.