Skip to content

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

License

Notifications You must be signed in to change notification settings

muzix/ReSwift-Persist

Repository files navigation

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).