Swiftpack.co - Package - fr3qfly/FFPersistanceService


Platform MacOS Platform Version Carthage Compatible SPM Compatible License

A framework that makes it super easy to save objects in UserDefaults , Keychain or any custom key-value based object storage solution through protocols.

With the use of Persistable protocol you can easily save/load/delete through your Model objects in the predefined storage solution.


Check out the Example Project

  • ViewModel.swift from line 71 and
  • Model folder

and in PersistanceServiceTests folder

  • Mocks.swift and
  • PersistableTests.swift



FFPersistanceService is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'FFPersistanceService'


FFPersistanceService is available through Carthage. To install it, simply add the following line to your Cartfile:

github "fr3qfly/FFPersistanceService"

Swift Package Manager

FFPersistanceService is available through Swift Package Manager. Once you have a Package set-up you just need to add the package to the dependencies value of your Package.swift.

dependencies: [
    // This is the line you need to add:
    .package(url: "https://github.com/fr3qfly/FFPersistanceService", from: "1.0.0"),

And you need to add it to the targets where you intend to use it.

    name: "Your_Target",
    dependencies: ["FFPersistanceService"])


BalazsSzamody, fr3qfly@gmail.com


FFPersistanceService is available under the MIT license. See the LICENSE file for more info.


Stars: 3
Help us keep the lights on


Used By

Total: 0


1.0.0 - Apr 6, 2019

Release of v1 With CocoaPods, Carthage and SPM Support Example Project Included

0.1.5 - Apr 6, 2019

  • Example Project included
  • Carthage Support added

0.1.4 - Apr 4, 2019

Updated the error handling of SecureStorage

0.1.3 - Apr 4, 2019

Removed Optional extension (didn't do anything) Updated the tests

0.1.2 - Apr 4, 2019

Added Default saving methods for Optional and Collection types