Skip to content

Gongcu/ProtectedData

Repository files navigation

Protected Data

It aids in the process of handling data by waiting for the protected data to become available without blocking.

Installation

Swift Package Manager

File > Swift Packages > Add Package Dependency Add https://github.com/Gongcu/ProtectedData.git

Example

Use UserDefaults with .safe

let userDefaults = UserDefaults.standard

userDefaults.safe.set("value", forKey: "key")

let value = userDefaults.safe.string(forKey: "key")

About

It aids in the process of handling data by waiting for the protected data to become available without blocking.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors