Swiftpack.co - fr3qfly/FFPersistanceService as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by fr3qfly.
fr3qfly/FFPersistanceService 1.0.3
A framework that makes it super easy to save objects in `UserDefaults` or `Keychain`
⭐️ 3
🕓 1 year ago
.package(url: "https://github.com/fr3qfly/FFPersistanceService.git", from: "1.0.3")

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.

Usage

Check out the Example Project

  • ViewModel.swift from line 71 and
  • Model folder

and in PersistanceServiceTests folder

  • Mocks.swift and
  • PersistableTests.swift

Installation

Cocopods

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

pod 'FFPersistanceService'

Carthage

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.

.target(
    name: "Your_Target",
    dependencies: ["FFPersistanceService"])

Author

BalazsSzamody, [email protected]

License

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

GitHub

link
Stars: 3
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

1.0.3
3 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics