BakrID / ReSwift-PersistStore

Basic data persisting for ReSwift. Inspired by Redux-persist.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReSwift-Persist

Installation

pod 'ReSwift-PersistStore'

Example

// App state should comforms PersistState
struct AppState: PersistState { }

// Initialize PersistStore
var config = PersistConfig(persistDirectory: "data", version: "1")
config.debug = true
let persistStore = PersistStore(config: config, reducer: appReducer, state: nil)

Credits

Inspired by ReSwift and Redux-persist

License

Distributed under the MIT License (MIT).

About

Basic data persisting for ReSwift. Inspired by Redux-persist.

License:MIT License