public struct QEDModel
QEDModel is optional and is meant just as an aid to speed up your data source implementation.
Will persist a given array of
Normally you will call this method when the app goes to background, passing your in memory model array for persisting.
NoteThis method will also run clean up of local storage files keeping only those belonging to existing reports.
public static func persist(reports: [QEDReport])
An array of
QEDReportinstances representing your data model to be persisted locally to
Returns the locally persisted array of
public static func loadFromStore() -> [QEDReport]
Returns the currently persisted array of
UserDefaultsIf no array is persisted currently in
UserDefaults, an empty array will be returned.