Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 595 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 595 Bytes

ReSwift-Persist

Installation

pod 'ReSwift-Persist'

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)

Please check Todo example for usage detail.

Credits

Inspired by ReSwift and Redux-persist

License

Distributed under the MIT License (MIT).