• Stars
    star
    32
  • Rank 774,073 (Top 16 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 1 year ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ’พ GoodPersistence is an iOS library that simplifies caching data in keychain and UserDefaults. Using a property wrapper, it reduces the complexity of implementing caching mechanisms, making it easier for developers to focus on app functionality. Compatible with latest Swift and supports all iOS devices. Easy to install with SPM.

Logo

GoodPersistence

iOS Version Swift Version Supported devices Contains Test Dependency Manager

A property wrapper, designed to simplify the process of caching data into the keychain and UserDefaults storage. This wrapper makes it possible to quickly and easily implement caching mechanisms in the applications, without having to write extensive amounts of code. The property wrapper takes care of all the underlying complexity, allowing developers to focus on their application's functionality.

Documentation

You can check GoodPersistence package documentation here

Installation

Swift Package Manager

Create a Package.swift file and add the package dependency into the dependencies list. Or to integrate without package.swift add it through the Xcode add package interface.

import PackageDescription

let package = Package(
    name: "SampleProject",
    dependencies: [
        .Package(url: "https://github.com/GoodRequest/GoodPersistence" from: "addVersion")
    ]
)

Usage

Storing to the UserDeaults

@UserDefaultValue(String(describing: AppState.self), defaultValue: .initial)
var appState: AppState

Storing to the KeyChain

@KeychainValue("accessToken", defaultValue: "", accessibility: .afterFirstUnlockThisDeviceOnly)
var accessToken: String

Using Publishers

lazy var appStatePublisher = _appState.publisher
    .dropFirst()
    .removeDuplicates()
    .eraseToAnyPublisher()

License

GoodPersistence is released under the MIT license. See LICENSE for details.

More Repositories

1

GoodReactor

โš›๏ธ GoodReactor is a Redux-inspired Reactor framework for iOS developed using Swift. It enables seamless communication between the View Model, View Controller, and Coordinator through state and navigation functions. It ensures no side-effects by interacting with dependencies outside of the Reduce function. Integrate it with using SPM!
Swift
32
star
2

GoodNetworking

๐Ÿ“ก GoodNetworking is an iOS library written in Swift that simplifies HTTP networking by using GRSession and Encodable/DataRequest extensions. It supports latest Swift and all iOS devices, making it a powerful solution for managing network interactions and data encoding/decoding. The library is easy to install with SPM.
Swift
31
star
3

Temple

๐Ÿ—‚๏ธ This repository provides a guide to creating Xcode templates for iOS boilerplate code to save time and increase creativity in development. It simplifies the process and helps new team members get up to speed. A solution to Xcode's poorly documented templates.
Swift
31
star
4

GoodUIKit

๐Ÿ“‘ GoodUIKit is a UIKit extensions library filled with reusable UI snippets for faster and more efficient iOS development. Boost productivity and streamline your workflow with ready-to-use UI components.
Swift
30
star
5

GoodExtensions-iOS

๐Ÿ“‘ GoodExtensions is a collection of useful and frequently used Swift extensions for iOS development, designed to simplify and streamline common tasks.It helps developers write clean and concise code, saving time and effort while boosting productivity. Get access to a wealth of essential tools for iOS development in one convenient library.
Swift
28
star
6

GRProvider

๐Ÿš€UITableView and UICollectionView provider to simplify basic scenarios of showing the data.
Swift
27
star
7

GoodIOSExtensions

๐Ÿงพ GoodIOSExtensions is a collection of modules extending different aspects of your swift xcode project
Swift
19
star
8

express-joi-to-swagger

Simple tool for generating swagger API documentation from source code.
TypeScript
19
star
9

GoodSwiftUI

๐Ÿ“‘ GoodSwiftUI is a comprehensive library filled with reusable SwiftUI snippets for faster and more efficient iOS development. This library offers a wide range of customizable UI components, designed to boost your productivity and streamline your development workflow. Save time and effort by leveraging pre-made, tested, and ready-to-use code.
Swift
17
star
10

AppDebugMode-iOS

๐Ÿ› App Debug Mode ๐Ÿž for iOS. Allows special debug privileges.
Swift
16
star
11

GoodSwift

Some good swift extensions, handfully crafted by GoodRequest team.
Swift
9
star
12

spongly-dapp-public

TypeScript
3
star
13

GoodPagerIndicator

Kotlin
2
star
14

spongly-contracts

๐Ÿชธ Smart contracts for spongly protocol
TypeScript
2
star
15

BackupBuddy

Simple Bash app for backing up your database or filesystem data.
Shell
2
star
16

GoodCoordinator-iOS

๐Ÿงญ Simplified programmatic navigation in SwiftUI
Swift
2
star
17

Safe

Safe enables sharing confidential information with a limited number of views and overall lifetime.
HTML
2
star
18

test-coverage-push-script

JavaScript
1
star
19

Zoom

Kotlin optics library for immutable data manipulation
Kotlin
1
star
20

internship_ios

HTML
1
star
21

joi-type-extract

Extract type from Joi schema
1
star
22

joi-messages-extractor

Script for extracting joi messages. Useful for translations.
TypeScript
1
star
23

BackendAssignment-Fitness

TypeScript
1
star