Keychain

0.1.1

Swift module for interacting with Keychain via property wrapper
tyhopp/keychain

What's New

v0.1.1

2023-04-07T14:51:07Z
  • Tests pass in CI on macOS, iOS, tvOS and watchOS
  • Works when added as a package dependency in an Xcode project

Keychain

Swift module for interacting with Keychain via property wrapper.

Usage

// Define
@Keychain(service: "my-app") var token: String?

// Set
token = "my-token"

// Get
if let token = token {
    print(token) // my-token
}

// Delete
token = nil

Platforms

  • macOS 12.0+
  • iOS 15.0+
  • tvOS 15.0+
  • watchOS 8.0+

See the CI config for exact tests that are run for each PR.

Licenses

The source code is adopted from these sources with a few small adjustments:

The licenses are linked in the source files and available in the repo without modification:

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sun Apr 14 2024 19:32:38 GMT-0900 (Hawaii-Aleutian Daylight Time)